19 gru 2008

Dodanie podstawowych kontrolek do mapy

var map = new GMap2(document.getElementById("map_bm"));
map.setCenter(new GLatLng(52.212, 20.823), 15);
map.addOverlay(new GMarker(new GLatLng(52.212, 20.823));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GOverviewMapControl());
map.enableDoubleClickZoom();

lub

map.addControl(new GLargeMapControl(), new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10, 10)));