Here is the map example。固定在地图的中心。我怎样才能在地图的左侧制作它?还是在地图的底部?
以下是代码:
function initMap() {
var uluru = {lat: 55.862157, lng: 37.658168};
var image = {
url: "http://silencer.website/alkor//images/pin.svg",
scaledSize: new google.maps.Size(75, 75)
}
var map = new google.maps.Map(document.getElementById("contacts__map"), {
zoom: 15,
center: uluru,
streetViewControl: false,
signInControl: false,
fullscreenControl: false,
mapTypeControl: false,
scrollwheel: false,
scaleControl: false
});
var marker = new google.maps.Marker({
position: uluru,
map: map,
optimized: false,
icon: image,
title: "Основной офис и склад"
});
}
答案 0 :(得分:0)
我需要使用map.panBy(x,y);