Changeset 7736


Ignore:
Timestamp:
Apr 13, 2010, 5:11:59 PM (15 years ago)
Author:
janveeden
Message:

Thought giving the markers their name as title would make more sense.

File:
1 edited

Legend:

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

    r7735 r7736  
    3636function addMarker(current, i) {
    3737        var id = current.id;
    38         var marker  = new GMarker(new GLatLng(current.latitude[0], current.longitude[0]), {title: id});
     38        var marker  = new GMarker(new GLatLng(current.latitude[0], current.longitude[0]), {title: current.name[0]});
    3939        //Added mouseover listener that calls on our mouseOver function when the mouse moves over a marker on the map
    4040        GEvent.addListener(marker, 'mouseover', function() {
     
    6161function mouseOverCluster(markers)
    6262{
    63         //Make 'markers' array (containing gmarkers) into an array containing only the titles(id's) of the markers
     63        //Make 'markers' array (containing gmarkers) into an array containing only the titles(names) of the markers
    6464        var markerTitles = new Array;
    6565        for(var i=0; i<markers.length; i++) {
Note: See TracChangeset for help on using the changeset viewer.