Mercurial > hg > ChinaGisRestApi
changeset 240:5159df776eaf
show line and polygon-layer
author | fknauft |
---|---|
date | Tue, 06 Sep 2011 10:08:32 +0200 |
parents | 95721c5afd0b |
children | b5d9237ca4d7 |
files | gis_gui/blocks/map.js |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gis_gui/blocks/map.js Tue Sep 06 10:03:24 2011 +0200 +++ b/gis_gui/blocks/map.js Tue Sep 06 10:08:32 2011 +0200 @@ -143,7 +143,11 @@ guiBlocks.Block.prototype.reloadMap = function(map) { var center = map.getCenter(); - map.panTo(center); + var dummymarker = new google.maps.Marker(); + dummymarker.setPosition(center); + dummymarker.setVisible(false); + dummymarker.setMap(map); + }; guiBlocks.Block.prototype.updateMap = function(elem,map_params) {