changeset 238:aa6d3137a92f

show line and polygon-layer
author fknauft
date Tue, 06 Sep 2011 10:00:10 +0200
parents 35c3d0ce2914
children 95721c5afd0b
files gis_gui/blocks/map.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gis_gui/blocks/map.js	Tue Sep 06 09:52:15 2011 +0200
+++ b/gis_gui/blocks/map.js	Tue Sep 06 10:00:10 2011 +0200
@@ -142,7 +142,8 @@
 };
 
 guiBlocks.Block.prototype.reloadMap = function(map) {
-	map.refresh();
+	var center = map.getCenter();
+	map.setCenter(center);
 };
 
 guiBlocks.Block.prototype.updateMap = function(elem,map_params) {