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

trigger MouseDown in x-map-polygon #119

Open
frsab opened this issue Oct 31, 2019 · 1 comment
Open

trigger MouseDown in x-map-polygon #119

frsab opened this issue Oct 31, 2019 · 1 comment
Labels

Comments

@frsab
Copy link

frsab commented Oct 31, 2019

can you please tell me how I can trigger the MouseDown (mousedown) event from the x-map-polygon component
I tried to do that in the following way, but it did not work.

` <x-map #xmap
[Options]="_options"
[Box]="_box"
(MouseDown)="_eventMouseDown($event)"

    <x-map-polygon  *ngIf="showCircle()"
    (MouseDown)="_eventMouseDown($event)" 

    [Paths]="_path" 
    [Editable]="true" 

    ></x-map-polygon>
  </x-map> ` ***Component.html

_eventMouseDown(event){ console.log('_eventMouseDown(event)'); } ***Component.html

@thor-schueler
Copy link
Contributor

@frsab: Your approach is ok. see working sample at https://stackblitz.com/edit/bing-map-with-complex-polygon-mousedown.

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