Changeset 7802 for trunk/src/map/inc
- Timestamp:
- Apr 17, 2010, 1:59:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/nodemapWL.js
r7801 r7802 1 1 //Declaring some variables we will be using 2 var gmap_search_state = false; 2 3 var map; 3 4 var markerArray = new Array(); … … 17 18 //Adding the google map into the div called #mapcanvas 18 19 map = new GMap2(document.getElementById("mapcanvas"), {googleBarOptions : {style : "new",}}); 19 map.enableGoogleBar();20 20 //Center the map on Leiden 21 21 map.setCenter(new GLatLng(52.162687, 4.493294), 11); // Vars should go to config 22 22 map.setUIToDefault(); 23 23 24 24 25 … … 307 308 } 308 309 309 function search() 310 { 311 312 } 313 314 315 316 317 310 function toggleGoogleSearchMap() 311 { 312 if(gmap_search_state) 313 { 314 gmap_search_state = false; 315 } 316 else 317 { 318 gmap_search_state = true; 319 } 320 321 if(gmap_search_state) 322 { 323 map.enableGoogleBar(); 324 } 325 326 if(!gmap_search_state) 327 { 328 map.disableGoogleBar(); 329 } 330 } 331 332 333 334 335
Note:
See TracChangeset
for help on using the changeset viewer.