[google_maps_flutter_web] Add editable polyline and polygon support#11919
Draft
lume-code wants to merge 1 commit into
Draft
[google_maps_flutter_web] Add editable polyline and polygon support#11919lume-code wants to merge 1 commit into
lume-code wants to merge 1 commit into
Conversation
11 tasks
701eb16 to
32cd208
Compare
11 tasks
Implements editable polylines and polygons on web using the Google Maps JavaScript API `editable` flag: - Wires `editable`/`onEdited` through to the JS `Polyline`/`Polygon` controllers. - Listens to MVCArray path-change events and emits `PolylineEditEvent` / `PolygonEditEvent` (including polygon holes). - Recreates the controller on change so edit listeners rewire when `editable` toggles. Bumps to 0.7.0. Second of three PRs splitting flutter#11492; depends on google_maps_flutter_platform_interface 2.16.0.
32cd208 to
a1ae3bc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements editable polylines and polygons on the web platform, using the native Google Maps JavaScript API
editablefeature.Changes —
google_maps_flutter_web(0.6.2+3 → 0.7.0)editablethrough_polylineOptionsFromPolyline()/_polygonOptionsFromPolygon().MVCArrayevents (onSetAt,onInsertAt,onRemoveAt) inPolylineController/PolygonController.PolylineEditEvent/PolygonEditEvent(including polygon holes) over the shared event stream.editabletoggles.example/latest/integration_test/.This feature is web-only; the
editableproperty is silently ignored on Android and iOS.Part of #11492 · Interface PR: #11492 · App-facing PR: #11920 · Fixes flutter/flutter#71248
Pre-Review Checklist
[shared_preferences]///).Footnotes
See the test exemption and version/CHANGELOG exemption docs for details. ↩ ↩2