Tuesday, 20 August 2013

How to set zoomLevel in google Visualization Map api ?

How to set zoomLevel in google Visualization Map api ?

I am trying to implement visualization map api,following this link Unable
to get required zoomlevel in google map v2?
i am successfully drawing the point on the google map but not able to set
the zoomlevel. For single point the zoomlevel automatic set to 19(max
level).
my code:-
var map = new google.visualization.Map(document.getElementById('map_div'));
map.draw(data, {showTip: true, zoom:14, mapType: 'normal',
useMapTypeControl:true, enableScrollWheel:false});
I have tried this map.setZoom(12) but its not working.

No comments:

Post a Comment