comparison gis_gui/blocks/map.js @ 244:57f0dfaf5949

show line and polygon-layer
author fknauft
date Tue, 06 Sep 2011 12:53:17 +0200
parents f842728b16a1
children 7c5d825a0083
comparison
equal deleted inserted replaced
243:f842728b16a1 244:57f0dfaf5949
146 var dummymarker = new google.maps.Marker(); 146 var dummymarker = new google.maps.Marker();
147 dummymarker.setPosition(center); 147 dummymarker.setPosition(center);
148 dummymarker.setVisible(false); 148 dummymarker.setVisible(false);
149 dummymarker.setMap(map); 149 dummymarker.setMap(map);
150 */ 150 */
151 google.maps.event.trigger(map, 'resize');
152 console.debug("map: ", map); 151 console.debug("map: ", map);
153 console.debug("map reloaded"); 152 console.debug("map reloaded");
154 153
155 }; 154 };
156 155
173 if (google != null) { 172 if (google != null) {
174 var latlng = new google.maps.LatLng(29, 116); 173 var latlng = new google.maps.LatLng(29, 116);
175 var mapOpts = { 174 var mapOpts = {
176 zoom: 2, 175 zoom: 2,
177 center: latlng, 176 center: latlng,
178 mapTypeId: google.maps.MapTypeId.TERRAIN 177 mapTypeId: google.maps.MapTypeId.TERRAIN,
178 scaleControl: true
179 }; 179 };
180 var map = new google.maps.Map(le, mapOpts); 180 var map = new google.maps.Map(le, mapOpts);
181 console.debug("new google map=",map," on el=",le); 181 console.debug("new google map=",map," on el=",le);
182 } 182 }
183 // add the layers 183 // add the layers