Skip to content

Fix Google Maps removeLine/removePolygon crash#885

Merged
JeroenDeDauw merged 1 commit intomasterfrom
fix/googlemaps-remove-line-polygon-crash
Apr 6, 2026
Merged

Fix Google Maps removeLine/removePolygon crash#885
JeroenDeDauw merged 1 commit intomasterfrom
fix/googlemaps-remove-line-polygon-crash

Conversation

@JeroenDeDauw
Copy link
Copy Markdown
Member

Fixes #883

The removeLine and removePolygon methods referenced this.line and
this.polygon (singular) instead of this.lines and this.polygons
(plural), causing TypeError on every call. Also replace no-op delete
on local variables with splice for proper array element removal.

Fixes #883

The removeLine and removePolygon methods referenced this.line and
this.polygon (singular) instead of this.lines and this.polygons
(plural), causing TypeError on every call. Also replace no-op
delete on local variables with splice for proper array element removal.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JeroenDeDauw JeroenDeDauw marked this pull request as ready for review April 6, 2026 15:01
@JeroenDeDauw JeroenDeDauw merged commit 347542f into master Apr 6, 2026
6 checks passed
@JeroenDeDauw JeroenDeDauw deleted the fix/googlemaps-remove-line-polygon-crash branch April 6, 2026 15:01
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.

Google Maps removeLine/removePolygon crash due to wrong property names

1 participant