ThinkGeo.com    |     Documentation    |     Premium Support

On map double click disable map zooming in

Hi,

I have a requirement that I have flights on map and when I double click particular Flight a new tab will open with that particular flight information. Here my problem is when I double click map is zooming in. But we dont want to map zoom in on double click.

I tried with 2 statements like

  1. OnClientDoubleClick=“return false;” in client side. but it is not allowing my new tab opening.
  2. wfMap.MapTools.MouseMapTool.Enabled = false; in server side. This is not allowing me to pan my map, and zooming out.

So please give me some other solution other than this two ways.

Thanks,
Riyas

Hi Riyaz,

You can try to put your open new tab code before the “return false;”

Please let me know whether that’s helpful.

Regards,

Ethan