It is not available until the card completes initialization. You must wait for the projection_changed event before accessing it.
function initialize() { var mapOptions = { zoom: 8, center: new google.maps.LatLng(-34.397, 150.644), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); google.maps.event.addListenerOnce(map,"projection_changed", function() { alert("projection:"+map.getProjection()); }); }
geocodezip
source share