Ignore:
Timestamp:
Apr 16, 2010, 5:36:18 PM (15 years ago)
Author:
ddboer
Message:

Single node, mouse over range area now works

File:
1 edited

Legend:

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

    r7793 r7796  
    3636        /*
    3737         * Hier zo circles toevoegen.
    38          */
     38         
    3939        for(var  i=0; i<circleArray.length; i++) {
    4040                map.addOverlay(circleArray[i]);
    4141        }
     42        */
    4243       
    4344        var markerClusterer = new MarkerClusterer(map, markerArray);
     
    5556        var latitude = Number(current.latitude[0]);
    5657        var longitude = Number(current.longitude[0]);
    57         var circle = drawCircle(latitude, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2);
     58        //var circle = drawCircle(latitude, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2);
    5859        var marker  = new GMarker(new GLatLng(current.latitude[0], current.longitude[0]), {title: current.name[0], icon: greenIcon});
    5960       
    6061        //Added mouseover listener that calls on our mouseOver function when the mouse moves over a marker on the map
    6162        GEvent.addListener(marker, 'mouseover', function() {
    62         //mouseOverNode(current.id, current.name[0],52.118860692234, 4.5015095076528);
    63         mouseOverNode(current.id, current.name[0],current.latitude[0], current.longitude[0]);
     63        mouseOverNode(current.id, current.name[0],latitude, longitude);
    6464        });
    6565        GEvent.addListener(marker, 'click', function() {
     
    7171       
    7272        markerArray.push(marker);
    73         circleArray.push(circle);
     73        //circleArray.push(circle);
    7474        return marker;
    7575}
     
    102102}
    103103//Our mouseover function for single nodes. Gives the ID(our own given ID) and the name of the node.
    104 function mouseOverNode(id, name, lat, longitude)
     104function mouseOverNode(id, name, latitude, longitude)
    105105{
    106106        overNode = true;
    107107        if(!selected == true)
    108108        {
     109                drawCircle(latitude, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2);
     110                map.addOverlay(polygon);
    109111                loadXMLDoc("inc/node_info.php?type=single&name="+name+"");
    110112
    111                 //alert(long);
    112113                /*
    113114                *Hieronder verdergaan met dekking
Note: See TracChangeset for help on using the changeset viewer.