Changeset 7833 for trunk/src/map


Ignore:
Timestamp:
Apr 18, 2010, 8:54:47 PM (15 years ago)
Author:
ddboer
Message:

Clusters now get a red highlight behind them

Location:
trunk/src/map/inc
Files:
3 edited

Legend:

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

    r7824 r7833  
    688688   
    689689  GEvent.addDomListener(div, "click", function() {
    690           clickCluster(markerArray);
     690         
     691
     692                  highlightCurrentMarker(latlng);       
     693          clickCluster(markerArray, latLng);
    691694      });
    692695 
    693696  GEvent.addDomListener(div, "mouseout", function() {
    694697          mouseOutCluster(markerArray);
     698         
    695699      });
    696700  this.div_ = div;
  • trunk/src/map/inc/nodemapWL.js

    r7832 r7833  
    8484        });
    8585        GEvent.addListener(marker, 'click', function() {
    86                 currentMarker = marker;
    87                   highlightCurrentMarker();     
    8886        mouseClickNode(current.id, current.name[0], marker);
    8987        });
  • trunk/src/map/inc/overlay.js

    r7832 r7833  
    2222
    2323
    24 function highlightCurrentMarker(){
    25 var markerPoint = currentMarker.getPoint();
     24function highlightCurrentMarker(markerPoint){
     25//var markerPoint = currentMarker.getPoint();
    2626
    2727var polyPoints = Array();
     
    5050}
    5151// Using GPolygon(points,  strokeColor?,  strokeWeight?,  strokeOpacity?,  fillColor?,  fillOpacity?)
    52 highlightCircle = new GPolygon(polyPoints,"#000000",2,0.0,"#F7FE2E",.5);
     52highlightCircle = new GPolygon(polyPoints,"#000000",2,0.0,"#DF0101",.5);
    5353map.addOverlay(highlightCircle);
    5454}
Note: See TracChangeset for help on using the changeset viewer.