Select to view content in your preferred language

infowindow close on touchscreens register map click event

847
1
Jump to solution
07-11-2017 11:01 AM
TylerWaring
Frequent Contributor

Greetings, 

I have a web map application that I am trying to optimize for touchscreens. I have a reverse geocode that brings up an info window with address details. On touchscreens, when I click the close button on the info window, another map click event is simultaneously fired... which subsequently revers geocodes another address and info window. How can I close the info window without registering a map click event. it is conceivable that the user would want to reverse geocode multiple consecutive locations, just not when they are closing the info window button.

Thanks,  

Tyler 

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Tyler,

   You can use dojo on pausable to pause the map click event handler when the close button is fired, or just use event.stopPropagation().

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Tyler,

   You can use dojo on pausable to pause the map click event handler when the close button is fired, or just use event.stopPropagation().

0 Kudos