Q: How do I distinguish the event that is triggered after the map is scaled between the mouse double click or scroll wheel?

A: 1. Cancel the default double-click zoom in event. 2. Bound double-click event for the map div. 3. You can get the screen coordinates in the double click event of div. And you can get the geographic coordinates according to the screen coordinates. Then manually perform the magnification level. Then you can distinguish between double-click and scroll wheel scaling events.


09 Jul,2019
Tags:iclient

More iClient FAQ