Skip to content

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

Open

Description

@frsab

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?

Activity

  1. 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)[/+] on Oct 29, 2019
  2. thor-schueler commented on Oct 29, 2019

    @thor-schueler
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions