Skip to content

Redraw GeoJSON features after style changes#1732

Open
arpitagarwal1301 wants to merge 1 commit into
googlemaps:mainfrom
arpitagarwal1301:fix/1050-redraw-polygon-style
Open

Redraw GeoJSON features after style changes#1732
arpitagarwal1301 wants to merge 1 commit into
googlemaps:mainfrom
arpitagarwal1301:fix/1050-redraw-polygon-style

Conversation

@arpitagarwal1301

Copy link
Copy Markdown

Fixes #1050.

Observe legacy GeoJSON features so style and geometry changes invalidate the cached renderer model and redraw map objects with the updated values. Repeated insertion remains idempotent, removed features detach their observer, and null-geometry features remain safe across the layer lifecycle.

Multi-geometries now keep their rendered children under the parent feature, preserving complete removal and click lookup. Multi-polygons also carry their polygon style into the renderer.

Tests:

  • data module unit tests, including focused redraw and renderer ownership regressions
  • data module lint
  • data debug assembly
  • diff whitespace check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GeoJsonFeature.setPolygonStyle() doesn't redraw polygon if the feature was previously added via GeoJsonLayer.addFeature()

2 participants