Category Archives: Google maps jQuery plugin

Change map type

To change the map type when initializing the map:

[js]
$(‘#map_canvas’).gmap( {
‘zoom’: 3,
‘center’: new google.maps.LatLng(my_lat, my_lng),
‘callback’: function(map) {
$(‘#map_canvas’).gmap(‘option’, ‘mapTypeId’, google.maps.MapTypeId.TERRAIN);
//rest of the code
}
});
[/js]