Mercurial > hg > ChinaGisRestApi
comparison gis_gui/blocks/map.js @ 239:95721c5afd0b
show line and polygon-layer
author | fknauft |
---|---|
date | Tue, 06 Sep 2011 10:03:24 +0200 |
parents | aa6d3137a92f |
children | 5159df776eaf |
comparison
equal
deleted
inserted
replaced
238:aa6d3137a92f | 239:95721c5afd0b |
---|---|
141 return params; | 141 return params; |
142 }; | 142 }; |
143 | 143 |
144 guiBlocks.Block.prototype.reloadMap = function(map) { | 144 guiBlocks.Block.prototype.reloadMap = function(map) { |
145 var center = map.getCenter(); | 145 var center = map.getCenter(); |
146 map.setCenter(center); | 146 map.panTo(center); |
147 }; | 147 }; |
148 | 148 |
149 guiBlocks.Block.prototype.updateMap = function(elem,map_params) { | 149 guiBlocks.Block.prototype.updateMap = function(elem,map_params) { |
150 | 150 |
151 //************ | 151 //************ |