GeoJsonFeature.setPolygonStyle() doesn't redraw polygon if the feature was previously added via GeoJsonLayer.addFeature() #1050
Labels
priority: p4
An issue that should be addressed eventually.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Summary
First I add GeoJsonLayer without features to map. Then I continiously add features using GeoJsonLayer.addFeature() and all the features are appearing on the map. Next I try to call GeoJsonFeature.setPolygonStyle() on the added features, but corresponding polygons don't change their appearance.
Expected behavior
Calling GeoJsonFeature.setPolygonStyle() should redraw the feature with the given style.
Observed behavior
The feature's appearance remains the same as before.
Environment details
Library version 2.3.0
Code example
I suppose that the reason is Layer.addFeature() calls improper version of underlyed renderer's addFeature() (Renderer.addFeature() instead of GeoJsonRenderer.addFeature())
The text was updated successfully, but these errors were encountered: