I have a Google map I created in Javascript using the v3.8 api:
var myOptions = {
center: map_center,
panControl: false,
zoomControl: true,
scaleControl: true,
streetViewControl: false,
mapTypeControlOptions: {
mapTypeIds: [google.maps.MapTypeId.SATELLITE, google.maps.MapTypeId.ROADMAP],
style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
}
};
var map = new google.maps.Map(Dom.get('map_canvas'), myOptions);
But I don’t want the label in the maptype control to be ‘Satellite’, I would like to it to say something else. Any way to do this without doing a custom control like this:
http://code.google.com/apis/maps/documentation/javascript/controls.html#CustomControls
Thanks!
Brian
It is [currently] possible to change the label with
The labels need to be set once the map has been initialised, so
addListenerOnceon the map’sidleevent can be used. Example: http://www.acleach.me.uk/gmaps/v3/map-customlabels.htm