Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps: How to move zoom controls?

How can I move the Google Maps zoom controls, via the API, to the opposite side of the map?

like image 723
JustinT Avatar asked Apr 14 '10 14:04

JustinT


People also ask

How do I custom zoom on Google Maps?

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.

How do I change the max zoom level in Google Maps?

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.

What is Google Maps zoom level?

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.

Which built in method is used to display zoom controls on Google Maps?

I have my MapController and MapView, and I enable the built-in zoom controls using: mapView. setBuiltInZoomControls(true);


Video Answer


1 Answers

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);
like image 140
Junaid Anwar Avatar answered Sep 21 '22 02:09

Junaid Anwar