-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(google-maps): Add MapPolygon component #17936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add MapPolygon component to Google Maps, allowing polygons to be added to a Google Map.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -28,4 +29,13 @@ | |||
<input id="editable-polyline-checkbox" type="checkbox" (click)="toggleEditablePolyline()"> | |||
</div> | |||
|
|||
<div> | |||
<label for="polygon-checkbox">Toggle Polygon</label> | |||
<input id="polygon-checkbox" type="checkbox" (click)="togglePolygonDisplay()"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: you can put the input
inside of the label
to associate them rather than adding IDs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Marking this as blocked since it will need to go in after we release v9 |
@mbehrlich actually I tried the demo locally and there seems to be an error when enabling the polygon:
|
Does this still need to be blocked since it's being merged into google-maps-next and not master? |
@jelbourn The type error occurs if you click "toggle editable polygon" when the polygon itself is not displayed. As far as @angular/google-maps is concerned, that's working as intended. To fix this in the demo, I've disabled the editable toggle when the polygon (or polyline) itself is not being displayed. |
Fix issues with checkboxes for demo app for MapPolygon.
Add MapPolygon component to Google Maps, allowing polygons to be added to a Google Map.
Add MapPolygon component to Google Maps, allowing polygons to be added to a Google Map.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Add MapPolygon component to Google Maps, allowing polygons to be added
to a Google Map.