I'm implementing two different kinds of google maps in my site.
The first simply shows pre-defined locations with markers using a MapTypeID of:
mapTypeId: google.maps.MapTypeId.ROADMAP
The second allows the user to interact by dragging/dropping markers on the map etc.
I'm calling my API like so:
<script src="http://maps.google.com/maps?file=api&v=2.x&sensor=false&key=ABQIAAAAfK8z5AsiUZwKZF5CkZMF6BTAb5FWVJrlydeWm3IWDEdBI1HaUhTpyn3_qR2q3IPbPnQKou9lkKVqIA" type="text/javascript"></script>
When launching my first map I get this error:
Uncaught TypeError: Cannot read property 'ROADMAP' of undefined
If I load the Google Maps API an alternative way like so:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
The error from the first map goes away but I now get this error when launching my second map:
Uncaught ReferenceError: GOverlay is not defined
Uncaught ReferenceError: GControl is not defined
Uncaught ReferenceError: GControl is not defined
Uncaught ReferenceError: GCopyright is not defined
I think the issue has to do with one maps requiring an older version of the google maps API. Is it possible to load two seperate google maps API?
Thanks