mapView disable double-click zoom

2198
2
Jump to solution
04-13-2017 09:51 AM
AntonioUrquidi
New Contributor II

I'm looking to add my own event handler for the mapView's double-click event. How do I go about disabling the default mapView's double-click event handler or any other default event handler like click.

Tags (1)
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Antonio,

   Just use the evt.stopPropagation();

view.on("double-click", function(evt) {
  evt.stopPropagation();
  console.info(evt);
});

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Antonio,

   Just use the evt.stopPropagation();

view.on("double-click", function(evt) {
  evt.stopPropagation();
  console.info(evt);
});
0 Kudos
AntonioUrquidi
New Contributor II

Thanks. That worked

0 Kudos