Hi,

I am trying to add two instance of google map in a single html page
and It is showing the maps properly. But It is showing mapTypeControls
in only one map. (Map,Satellite, Hybrid etc). If I click on the
Satellite button, All the maps are in Satellite view. But I want
independent maps. Please help me!!

Following is the code

    <div id="map" style="width: 400px; height: 400px"></div>
    <div id="map1" style="width: 400px; height: 400px"></div>

    <script type="text/javascript">

    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(43.13, -89.33),5);

    var map1 = new GMap2(document.getElementById("map1"));
    map1.addControl(new GSmallMapControl());
    map1.addControl(new GMapTypeControl());
    map1.setCenter(new GLatLng(43.13, -89.33),5);

    </script>

Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to