Ignore:
Timestamp:
Apr 17, 2010, 1:38:31 PM (15 years ago)
Author:
janveeden
Message:

Added location search on map. Sadly results contain advertising.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/map/inc/nodemapWL.js

    r7800 r7801  
    1616        if (GBrowserIsCompatible()) {
    1717        //Adding the google map into the div called #mapcanvas
    18         map = new GMap2(document.getElementById("mapcanvas"));
     18        map = new GMap2(document.getElementById("mapcanvas"), {googleBarOptions : {style : "new",}});
     19        map.enableGoogleBar();
    1920        //Center the map on Leiden
    20         map.setCenter(new GLatLng(52.162687, 4.493294), 11);
     21        map.setCenter(new GLatLng(52.162687, 4.493294), 11); // Vars should go to config
    2122        map.setUIToDefault();
    2223 
     
    9091               
    9192                markerSelected = marker;
    92                 marker.setImage("../img/sleutelGroenSelected.png");
    93                 loadXMLDoc("inc/node_info.php?type=single&name="+name+"");
     93                marker.setImage("../img/sleutelGroenSelected.png");//Path should be in config
     94                loadXMLDoc("inc/node_info.php?type=single&name="+name+""); //Should also be in config
    9495
    9596                /*
     
    110111                map.addOverlay(polygon);
    111112               
    112                 loadXMLDoc("inc/node_info.php?type=single&name="+name+"");
     113                loadXMLDoc("inc/node_info.php?type=single&name="+name+"");//Path should be in config
    113114
    114115                /*
     
    306307}
    307308
    308 
    309 
    310 
    311 
     309function search()
     310{
     311
     312}
     313
     314
     315
     316
     317
Note: See TracChangeset for help on using the changeset viewer.