20 Sty 2009

Przesunięcie mapy o 0,100 pikseli, panBy

var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(7, 20);

var marker = new GMarker(new GLatLng(52.50378799438477, 13.31508636474609), icon)
map.addOverlay(marker);
marker.openInfoWindowHtml('<b>Hotel</b>');
map.panBy(new GSize(0, 100));