# HG changeset patch # User fknauft # Date 1315306397 -7200 # Node ID 57f0dfaf59492c4e4c2b45f54a9c06ca8e9cdbb0 # Parent f842728b16a1e2419fd33a2b42edd2e03e982998 show line and polygon-layer diff -r f842728b16a1 -r 57f0dfaf5949 gis_gui/blocks/map.js --- 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);