How can I move the Google Maps zoom controls, via the API, to the opposite side of the map?
You can change the zoom level of the map using simple steps. Step 1 Go to Add or Edit Map page . Step 2 Select 'Default zoom level' in the 'Map Information section'. Step 3 click save map and see the changes.
Setting up the minimum or maximum Zoom value for Google Maps can be done by adding the shortcode attribute with Store Locator Shortcode. Furthermore, the maximum value of Google Maps Zoom level is 22. Therefore, the defined maximum value must be below or equal to 22, which is the default.
Google Maps has an integer 'zoom level' which is the resolution of the current view. Zoom levels are between 0 (the entire world can be seen on one map) and 21+. You can also set the minimum and maximum values for the zoom parameter.
I have my MapController and MapView, and I enable the built-in zoom controls using: mapView. setBuiltInZoomControls(true);
var myOptions = {
zoom: 6,
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.SMALL,
position: google.maps.ControlPosition.LEFT_CENTER
},
scaleControl: true,
panControl: true,
navigationControl: false,
mapTypeId: 'roadmap',
streetViewControl: false,
center: new google.maps.LatLng(XXX,XXX)
}
map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
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