I want remove the option for the user to put the map into 45 degree tilt mode from the satellite view. I can set the default tilt by calling setTilt(0) on the Map object, but when the map is displayed, and the user clicks on the Satellite option in upper right of map, it still shows the 45 degree option.
How can I eliminate the 45 degree option, and still have the user able to switch between road and satellite view.
Google Maps - Turn On All Controls Adding or removing controls from the map is specified in the Map options object. Set the control to true to make it visible - Set the control to false to hide it.
The best kludge I've found to solve this involves both setting the tilt parameter in map options, and also hiding the popup using css attribute selectors. In the other solutions, a user can still switch manually to the 45º view.
Map Options
var mapOptions = {
tilt:0,
//all other map options
}
CSS to hide the popup (when mousing over the 'Satellite' control).
[title=Show\ 45\ degree\ view]
{
display:none;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With