I am not able to set center of map. It is showing different centre in mozilla and IE

26 views
Skip to first unread message

Bhushan Kakulte

unread,
Nov 1, 2009, 1:19:46 AM11/1/09
to Google Maps JavaScript API v3
// Display the map, with some controls and set the initial location
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(19.974777,73.74188),8);

// Set up three markers with info windows

var point = new GLatLng(19.974777,73.74188);
var marker = createMarker(point,'Bhushan home')
map.addOverlay(marker)


In the above code i am able to mark the point but that point which i
want it to be center is not getting

Brian Casey

unread,
Nov 1, 2009, 3:54:36 PM11/1/09
to google-map...@googlegroups.com
This is the API v3 group, but your example is for API v2.  There's a different group for v2 that will probably be able to better help you.
--
Brian Casey
b...@goption.com
Reply all
Reply to author
Forward
0 new messages