Hi everyone,
I have a list of location and i need to show all the location so i create a iframe and load the location page into the location.htm but in ie8 first map showing perfectly but the second and so on not showing properly. Can anyone help me?
<body onload="initialize()" style="background-color:none;">
<div style="float: left; width:520px; display: block;" name="newboxes" id="newboxes1">
<script type="text/javascript">
function initialize() {
var myLatlng = new google.maps.LatLng(1.28872, 103.80569);
var myOptions = {
zoom: 15,
center: myLatlng,
mapTypeControl: false,
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.SMALL
},
mapTypeId: google.maps.MapTypeId.ROADMAP,
}
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var contentString = '<div class="font12black">'+
'<strong>LOCATION</strong>'+
'</div>';
var infowindow = new google.maps.InfoWindow({
content: contentString
});
var marker = new google.maps.Marker({
position: myLatlng,
map:map,
});
infowindow.open(map,marker);
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
// To add the marker to the map, call setMap();
marker.setMap(map);
}
</script>
<div id="map_canvas" style="width: 330px; height: 300px; border: 2px solid #bbb;"></div>
</div>
</body>
</html>
For the second map also the same script just the LatLng is different.
Thanks for the help.
Andrew Teng