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
When sharing a map with drawn objects that has style altered with new style tool the result isn't always set as original.
Observed errors includes but propbably not limited to wrong colors. Also observed is wrong point symbol.
Original drawn (In Chrome browser):
Share map (In Firefox browser):
The text was updated successfully, but these errors were encountered:
Did a test with a polygon and a linestring with different colors on the stroke and the share map didn't show same colors as the drawn map.
I checked the GeoJSON that was created for share map and saw that only the polygon had style properties the linestring had a null value in properties.
To be sure that all the features have the correct styling, the style properties must be set for all features otherwise you'll get this random behaviour.
Did a test with a polygon and a linestring with different colors on the stroke and the share map didn't show same colors as the drawn map.
I checked the GeoJSON that was created for share map and saw that only the polygon had style properties the linestring had a null value in properties.
To be sure that all the features have the correct styling, the style properties must be set for all features otherwise you'll get this random behaviour.
Since the method uses ol.format.GeoJSON.writeFeatures is it a bug in OpenLayers or are it supposed to be that way?
Perhaps I'll do my own writeFeatures to get all the styling included.
When sharing a map with drawn objects that has style altered with new style tool the result isn't always set as original.
Observed errors includes but propbably not limited to wrong colors. Also observed is wrong point symbol.
Original drawn (In Chrome browser):
Share map (In Firefox browser):
The text was updated successfully, but these errors were encountered: