Google Maps Two Maps On Same Page
well i'm using this code for my website now -> http://bootply.com/98836 but i need two of maps in same page so i duplicate it and just change 'div id' first map is
Change the IDs, and create a map on each div:
<div id="map-canvas-first"></div>
<spanid="map-input-first"> address </span><divid="maps-canvas-second"></div><spanid="maps-input-second"> address </span>
mapFirst = new google.maps.Map(document.getElementById('map-canvas-first'),mapOptions);
mapSecond = new google.maps.Map(document.getElementById('map-canvas-second'),mapOptions);
Post a Comment for "Google Maps Two Maps On Same Page"