单击标记时,我会执行此代码。一切正常,除了地图不会垂直跨越(它确实跨越水平)
这是我的代码(javascript)
google.maps.event.addListener(marker, 'click', function() {
infoBox.setContent('<div class="info_details">'+this.image+' <h2>'+this.title+'</h2> <div class="prop_details">'+this.type+' for '+this.type2+' - '+this.price+'</div>' );
infoBox.open(map, this);
map.setCenter(this.position);
map.panBy(380,110);
});