In this example, what is `screen` and `france`? ``...
# data2viz
n
In this example, what is
screen
and
france
?
Copy code
val franceMercator = Geo.Projections.Mercator {
    fixExtend(screen, france)
}
I have the entire world as a
GeoJsonObject
so I'm not sure if I should be passing just a
GeoJsonObject
representing France or not (and if so, how would go about obtaining an object representing just France) EDIT: Okay, something I've noticed that is slightly related: When a
JacksonFeature
is converted to a
Feature
(that is, a GeoJson one), all property and id information is lost.
Copy code
// toGeoJsonObject.kt line 47
private fun JacksonFeature.toFeature() = Feature(this.geometry!!.toGeoJsonObject() as Geometry)
Oddly, the
Feature
constructor has an
id
field, but it's not used. This applies to other
JacksonXYZ
->
XYZ
conversions as well. This is kind of annoying because it would be trivial to preserve the information. Should I PR a fix for this?
👍 1
g
I didn’t have the time to work on these serialization features yet, so any your PR is welcome. https://github.com/data2viz/geojson-kotlin/issues/5
👍🏻 1