Angular-google-maps: AgmPolygone doesn't have a boundsChanged output event when its editable

Created on 18 Oct 2018  路  5Comments  路  Source: SebastianM/angular-google-maps

Issue description
How can I understand (get the output event or smth) when AgmPolygone boungds changed? Rectangle has an output boundsChanged when you edit a shape. But when you edit a polygon no events? I need somehow to understand when paths array is changed and get these new values.

Steps to reproduce and a minimal demo of the problem

_What steps should we try in your demo to see the problem?_

Current behavior
BoundsChanged for AgmPolygone doesnt exist.

Expected/desired behavior
BoundsChanged for AgmPolygone should exist.

angular2 & angular-google-maps version
Last version

Other information

stale

Most helpful comment

I found workaround you need to extend AgmPolygon and from there you can create your own handler and event emitter. You can check my implementation https://github.com/orb77/agm-polygon-with-bounds/blob/master/src/app/agm-polygon-with-bounds.directive.ts

All 5 comments

I made pull request for this functionality but I am 99% sure that will not be approved :)
https://github.com/SebastianM/angular-google-maps/pull/1532

I found workaround you need to extend AgmPolygon and from there you can create your own handler and event emitter. You can check my implementation https://github.com/orb77/agm-polygon-with-bounds/blob/master/src/app/agm-polygon-with-bounds.directive.ts

Thank you for reply, yeah I saw your implementation earlier in another issues, but I did another way of doing it, I created my own wrapper for polygon and placed it inside agm-map, even if it not related to agm at all :)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

duplicate of #823

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matishw picture matishw  路  3Comments

maneesht picture maneesht  路  3Comments

n1t3w0lf picture n1t3w0lf  路  3Comments

gnujeremie picture gnujeremie  路  3Comments

marcelinobadin picture marcelinobadin  路  3Comments