changeset 244:57f0dfaf5949

show line and polygon-layer
author fknauft
date Tue, 06 Sep 2011 12:53:17 +0200
parents f842728b16a1
children 7c5d825a0083
files gis_gui/blocks/map.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gis_gui/blocks/map.js	Tue Sep 06 10:39:36 2011 +0200
+++ b/gis_gui/blocks/map.js	Tue Sep 06 12:53:17 2011 +0200
@@ -148,7 +148,6 @@
 	dummymarker.setVisible(false);
 	dummymarker.setMap(map);
 	*/
-	google.maps.event.trigger(map, 'resize');
 	console.debug("map: ", map);
 	console.debug("map reloaded");
 	
@@ -175,7 +174,8 @@
         var mapOpts = {
                 zoom: 2,
                 center: latlng,
-                mapTypeId: google.maps.MapTypeId.TERRAIN
+                mapTypeId: google.maps.MapTypeId.TERRAIN,
+                scaleControl: true
         };
         var map = new google.maps.Map(le, mapOpts);
         console.debug("new google map=",map," on el=",le);