Skip to content
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

x-map-polygon events (moving a polygon point or creating a new point) #116

Open
frsab opened this issue Oct 29, 2019 · 1 comment
Open
Labels

Comments

@frsab
Copy link

frsab commented Oct 29, 2019

For x-map-polygon, like the case of "(Click) =" _ click ($ event) ", can you tell me which events can be triggered?
more specifically for an editable polygon, is there an event for moving a polygon point and creating a new point?

@frsab frsab changed the title x-map-polygon events (moving a polygon point orcreating a new point) x-map-polygon events (moving a polygon point or creating a new point) Oct 29, 2019
@thor-schueler
Copy link
Contributor

Please check the samples on the sample page, there is an example for editable polygons (https://stackblitz.com/edit/bing-map-with-editable-polygon). There is an event that is being raised when editing is complete, but not when an individual point is added.

The editing complete event will have the new polygon data in the payload, so it would be trivial to determine new or changed points by comparing to the original data (also part of the event payload).

You can find the code for the polygon model for bing at https://github.com/infusion-code/angular-maps/blob/master/src/models/bing/bing-polygon.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants