Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove Ammap map control overlay?

How can I remove the controls for panning and zooming when displaying my AmMap? Is there a field I can change when creating my map object or do I have to manually alter the library code?

like image 376
TheoretiCAL Avatar asked Oct 21 '15 21:10

TheoretiCAL


1 Answers

You can disable the pan/zoom buttons using the zoomControl fields when creating the map:

mapObj = new AmCharts.AmMap()
mapObj.zoomControl = {
       zoomControlEnabled: false,
       panControlEnabled: false
};
like image 164
TheoretiCAL Avatar answered Nov 13 '22 07:11

TheoretiCAL