From 2ad233be830b0d6381e5c9019560733f57893b9d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 5 Dec 2008 22:40:24 +0000 Subject: fixed ruler layer which hides control buttons --- map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'map.js') diff --git a/map.js b/map.js index 7964726..b580b84 100644 --- a/map.js +++ b/map.js @@ -25,9 +25,9 @@ function initialize(lat, lng, res) { map.setMapType(G_NORMAL_MAP); map.setZoom(res); } + map.addControl(new RulerControl()); map.addControl(new GSmallMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(10,20))); map.addControl(new GMapTypeControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(50,10))); - map.addControl(new RulerControl()); GEvent.addListener(map, "addoverlay", onAddOverlay); GEvent.addListener(map, "zoomend", onZoom); -- cgit v1.2.1