How can I disable panning (dragging) in AmCharts map only when it's fully zoomed out.
I tried using chart.seriesContainer.draggable = false; but it completely disable the panning, but i wanna be able to drag the map when I zoom in.
How can I disable panning (dragging) in AmCharts map only when it's fully zoomed out.
I tried using chart.seriesContainer.draggable = false; but it completely disable the panning, but i wanna be able to drag the map when I zoom in.
You can adjust map interaction behavior via the
MapChart.panBehaviorproperty and monitor for when thezoomLevelhas changed via the"zoomlevelchanged"event, e.g.:Here's a demo:
https://codepen.io/team/amcharts/pen/8d767bd62c8cb238ecb633e2123317ed