Muhammad Taqi
Muhammad Taqi

Reputation: 315

disable zoom on amchart map

Im using AmChart for Maps, When I double click on any part of map it zoom, I want to disable this zoom.

I have tried setting properties like

"dragMap": false,
"autoZoom": false,
 map.zoomControl = {
        zoomControlEnabled: false,
        panControlEnabled: false
    };

This works in IE, but still in Chrome it Zoom on double click.

Any help will be appreciated.

Thanks

Upvotes: 2

Views: 2615

Answers (1)

xorspark
xorspark

Reputation: 16012

You can set zoomOnDoubleClick to false in the top level of your chart config to disable zoom on double click:

map = AmCharts.makeChart("mapdiv", {
  "type": "map",
  "zoomOnDoubleClick": false,
  // ...
});

Demo

Upvotes: 2

Related Questions