我使用谷歌地图API v3.17如何更改Google地图缩放控件样式?
这里是我的代码:
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);
我发现了一个老式的谷歌地图,很少变焦图标(见图片,左侧)。
我正在寻找的是更大的图标,每个API文档(见图片,右侧)。
我的代码是相同的他们说这样做......我缺少什么呢?
谢谢!
注意[“signed_in”地图是不是在v3.17使用(http://jsfiddle.net/cw34pkvy/5/) ,但[从3.18开始](http://jsfiddle.net/cw34pkvy/6/) – geocodezip 2015-02-06 20:48:36