Hi I'm having a small issue with API v3
When my page loads I set the default to Satellite view but I have
to check the Labels checkbox to turn the street names on. How do
I make it so that when the page loads by default the street names
or the Labels option is set to true so that street names are visible
without having to check the Labels checkbox
My script is as follows
<script type="text/javascript">
var map;
var image;
function initialize() {
var myOptions = {
//zoom: 6,
mapTypeId: google.maps.MapTypeId.SATELLITE,
maxZoom: 18,
zoomControl: true,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR
},
zoomControlOptions: {
style: google.maps.ZoomControlStyle.LARGE
},
streetViewControl: true
};
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
image = "/images/reddot.png";
initialLocation = new google.maps.LatLng(-34.07153996863397,18.56987714767456);
map.setCenter(initialLocation);
map.setZoom(17);
marker = new google.maps.Marker({
position: initialLocation,
map: map,
icon: image
});
}
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "
http://maps.google.com/maps/api/js?v=3&sensor=false&callback=initialize®ion=ZA";
document.body.appendChild(script);
}
window.onload = loadScript;
</script>