angular / angular/components

feat(google-maps): Add support for polygonPathsChange event

Open
#26,303 2 comments 10 reactions 0 assignees View on GitHub
area: google-maps feature P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### Feature Description

Hi, old [AGM - Angular Google Maps](https://github.com/sebholstein/angular-google-maps) has polygon paths change event and it is so useful. Now I'm converting my components from AGM to google-maps component but it does not support polygon paths change event. It would be great if this component support polygon paths change event like old agm component.

https://github.com/sebholstein/angular-google-maps/blob/340e3e35b60169b901842d0ca71c13944ad7fd2c/packages/core/src/lib/directives/polygon.ts#L197

My old implementation
```html


```

New implementation with google-map
```html


```

### Use Case

In my use case I control intersection and cover functionality with old component `polyPathsChange` event, now I can't control them with efficient way so it is super powerful and helpful feature to be when google-map support `polygonPathsChange` event itself as old component support.

Contributor guide

Open the contributing guide

Research direction

Start with the map-polygon component and compare its available polygon events with the referenced AGM polygon implementation at packages/core/src/lib/directives/polygon.ts#L197. Trace how editable polygon path changes are exposed, then verify that the new polygonPathsChange event reports changes in the expected way for the migration example.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.