Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
129
rated 0 times [  135] [ 6]  / answers: 1 / hits: 5663  / 9 Years ago, fri, february 6, 2015, 12:00:00

I'm using Google Maps API v3.17



Here's my code:



    this._options = {
zoom: this._params.zoom,
center: new google.maps.LatLng(this._params.center.lat, this._params.center.lng),

// Disabled controls
mapTypeControl: false,
panControl: false,
scaleControl: false,
streetViewControl: false,

// Zoom control
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.SMALL,
position: google.maps.ControlPosition.RIGHT_BOTTOM
},

// Disable scrollwheel and double-click zooming
scrollwheel: false,
disableDoubleClickZoom: true // Because clicking through images results in a zoom
};

this._map = new google.maps.Map(this._el, this._options);


I'm getting an old-style Google Map, with little zoom icons (see image, left side).



What I'm looking for is the larger icons, per the API docs (see image, right side).





My code is identical to what they're saying to do... what am I missing?



Thanks!!


More From » google-maps

 Answers
18

The terms SMALL and LARGE are misleading a bit, they are not related to the size, they mean used with a zoom-control: hide or show the slider.



There is no built-in option to set the size.



What you see on the right side seems to be a signed-in map, which uses different controls.



Note: Signed-in maps aren't available in v3.17


[#39434] Thursday, February 5, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
masonm

Total Points: 167
Total Questions: 87
Total Answers: 103

Location: Rwanda
Member since Wed, Jun 8, 2022
2 Years ago
masonm questions
;