Migration guide
If you have used gMap 1.1.0 with Google Maps API V2 you have to adjust your code to make it work correctly with V3.
No Google API key anymore!
Simply include API anywhere you want:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
Changed controls control
If you want to add/remove default controls, don't use controls array anymore. Instead there are boolean flags in config. Please check documentation for description.
mapTypeControl: false,
zoomControl: false,
panControl: true,
scaleControl: true,
streetViewControl: false,
Changed map type
Since Google has moved to more object oriented code, you have to use different map types now.
| V2 type | V3 type |
|---|---|
| G_NORMAL_MAP | google.maps.MapTypeId.ROADMAP |
| G_SATELLITE_MAP | google.maps.MapTypeId.SATELLITE |
| G_HYBRID_MAP | google.maps.MapTypeId.HYBRID |
| G_PHYSICAL_MAP | google.maps.MapTypeId.TERRAIN |
That's all!
No more changes. Markers, geolocation, icons, etc. are working just fine without any modifications.
What's new and what's the point?
V3 is there since 2009 and it supports HTML5 geolocation, touch devices and, most important, is still improving, in contrary to good old V2.


