You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior Given a geometry without name was added to the statefulMapController with its fromGeoJson function, When adding another geometry, Then the first geometry is erased.
Expected behavior
The name of the geometry is somehow required. E.g. the function throws an Exception if the name is not defined.
Names in GeoJson
I'm not expert. Here are my findings.
Current behavior
Given a geometry without name was added to the
statefulMapController
with itsfromGeoJson
function,When adding another geometry,
Then the first geometry is erased.
Expected behavior
The name of the geometry is somehow required. E.g. the function throws an Exception if the name is not defined.
Names in GeoJson
I'm not expert. Here are my findings.
This is a geometry without name:
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"coordinates":[[[2.6716218646834,42.725850866641956],[2.6716723333868613,42.7251191289365], [2.7276823314798353,42.98550138640216],[2.715923326897498,42.985579790834805]]],"type":"Polygon"},"properties":{"name":"Corbières Fenouillèdes"}}]}
To add a name, adding
"name": "My geometry"
inproperties
worked for me.The text was updated successfully, but these errors were encountered: