I have a map with an infobox overlay on the top of the marker. As the box is quote big it goes out the view so I need to offset the center of the map about 150px down. I can't figure out how to use the panBy method to offset the map center using gmap3 jQuery plugin.
This is my code:
var center = [<?php echo $coordinate ?>];
$('#sw-map')
.gmap3({
center: center,
zoom: 16,
mapTypeId : google.maps.MapTypeId.ROADMAP,
})
.marker({
position: center
})
.overlay({
position: center,
content: html,
x:-125,
y:-260
});
Thanks
I've found the solution myself. Forgot to mention i was using gmap3 v7.2, i had to switch back to v6 changing the code a little bit, here's the working solution: