3 Kwi 2008

Utworzenie ikony dla mapy

var baseIcon = new GIcon();
baseIcon.iconSize = new GSize(32, 32);
baseIcon.shadowSize = new GSize(56, 32);
baseIcon.iconAnchor = new GPoint(16, 32);
baseIcon.infoWindowAnchor = new GPoint(16, 0);
var ikona = new GIcon(baseIcon, 'http://maps.google.com/mapfiles/kml/pal3/icon21.png', null, 'http://maps.google.com/mapfiles/kml/pal3/icon21s.png');

var point = map.map.getCenter();
var marker = new GMarker(point, ikona);