You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am looking for a way to add or use preventDefault on Map and Marker events such as click, double click, contextmenu.
Describe the solution you'd like
I have a contextmenut in an angular app that uses preventDefault as shown in the last line. I am not sure how this can be done
in for markers and Maps in Blazor
this.map.on('contextmenu', function (e: any) {
const originalEvent = e.originalEvent as MouseEvent; originalEvent.preventDefault();
}
this.marker.addEventListener('dblclick', function (e: any) {
const evt = e.originalEvent as MouseEvent; evt.preventDefault();
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I am looking for a way to add or use preventDefault on Map and Marker events such as click, double click, contextmenu.
Describe the solution you'd like
I have a contextmenut in an angular app that uses preventDefault as shown in the last line. I am not sure how this can be done
in for markers and Maps in Blazor
this.map.on('contextmenu', function (e: any) {
const originalEvent = e.originalEvent as MouseEvent;
originalEvent.preventDefault();
}
this.marker.addEventListener('dblclick', function (e: any) {
const evt = e.originalEvent as MouseEvent;
evt.preventDefault();
}
The text was updated successfully, but these errors were encountered: