Search code examples
javascriptamchartsammap

disable panning on map with mouse


I have discovered how to remove the controls for panning and zooming. I also found the property to stop zooming in on mouse clicks. How can I prevent the user from panning the map with the mouse?


Solution

  • You should set map.dragMap = false;