Changeset 7736
- Timestamp:
- Apr 13, 2010, 5:11:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/nodemapWL.js
r7735 r7736 36 36 function addMarker(current, i) { 37 37 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]}); 39 39 //Added mouseover listener that calls on our mouseOver function when the mouse moves over a marker on the map 40 40 GEvent.addListener(marker, 'mouseover', function() { … … 61 61 function mouseOverCluster(markers) 62 62 { 63 //Make 'markers' array (containing gmarkers) into an array containing only the titles( id's) of the markers63 //Make 'markers' array (containing gmarkers) into an array containing only the titles(names) of the markers 64 64 var markerTitles = new Array; 65 65 for(var i=0; i<markers.length; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.