Changeset 7825 for trunk/src/map/inc


Ignore:
Timestamp:
Apr 18, 2010, 11:38:17 AM (15 years ago)
Author:
janveeden
Message:

App broke in IE. Fixed some. Map is showing again now. Going to make all the JS valid using JSlint.

File:
1 edited

Legend:

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

    r7824 r7825  
    33
    44var map;
    5 var markerArray = new Array();
    6 var circleArray = new Array();
     5var markerArray = [];
     6var circleArray = [];
     7var polygons_on_map_array = [];
    78var xmlhttp;
    89var targetDiv = "infotop";
     
    1011var overNode;
    1112var markerSelected = "";
    12 var polygons_on_map_array = new Array();
     13
    1314
    1415
     
    1819        if (GBrowserIsCompatible()) {
    1920        //Adding the google map into the div called #mapcanvas
    20         map = new GMap2(document.getElementById("mapcanvas"), {googleBarOptions : {style : "new",}});
     21        map = new GMap2(document.getElementById("mapcanvas"), {googleBarOptions : {style : "new"}});
    2122        //Center the map on Leiden
    2223        map.setCenter(new GLatLng(52.162687, 4.493294), 11); // Vars should go to config
     
    238239function mapZoomed()
    239240{
    240         markerSelected.setImage("../img/sleutelGroenSelected.png");
     241        if(!markerSelected == "")
     242        {
     243                markerSelected.setImage("../img/sleutelGroenSelected.png");
     244        }
    241245}
    242246
Note: See TracChangeset for help on using the changeset viewer.