I am trying to hide the toggle fullscreen element in the Streetview API HUD.
panorama = new google.maps.StreetViewPanorama(document.getElementById(data.id), {
position : new google.maps.LatLng(data.lat, data.lng),
pov: {
heading : Number(data.heading),
pitch : Number(data.pitch)
},
linksControl: false,
panControl: false,
addressControl: false,
enableCloseButton: false,
zoomControl: false,
fullScreenControl: false,
enableCloseButton: false,
addressControlOptions: {
position: google.maps.ControlPosition.BOTTOM_CENTER
}
});
These options are specced here. All the options are working except for the fullScreenControl
My code can be viewed live here. The UI element is in the top right corner of the viewport.
The documentation warns as follows:
Note: This page describes the controls available in version 3.22 and later of the Google Maps JavaScript API. If you want to continue using the earlier set of controls for a while, you can set google.maps.controlStyle = 'azteca' in v3.22. Read more about the changes to the controls in this article: What's New in the v3.22 Map Controls.
However I am linking to the API Js file as follows:
<script src="//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
And 3.exp should be 3.22 at the moment of writing.
What am I missing here?