我想知道是否可以自定义平移和缩放颜色。从默认的白色到不同的颜色或添加渐变,也许。我是谷歌地图的新手,这就是我到目前为止的想法。
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(10.341908, 123.910602),
zoom: 16,
panControl: true,
panControlOptions: {
position: google.maps.ControlPosition.TOP_RIGHT
},
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.LARGE,
position: google.maps.ControlPosition.TOP_RIGHT
},
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map"),
mapOptions);
// Creating a marker and positioning it on the map
var marker = new google.maps.Marker({
position: new google.maps.LatLng(10.341908, 123.910602),
map: map
});
}