Changeset 612 for trunk


Ignore:
Timestamp:
Dec 14, 2007, 4:00:14 PM (12 years ago)
Author:
Nick Burch
Message:

Display details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openspace.npemap.org.uk/index.html

    r611 r612  
    5555
    5656        function addMarker(postcode, easting, northing, others ) {
     57                var id = others[0];
     58                var source = others[1];
     59                var source_name = ((source == 0 || source == 2) ? 'this site' : '<a href="http://www.freethepostcode.org/">freethepostcode.org</a>');
     60
    5761        var pos = new OpenSpace.MapPoint(easting, northing);
    58         var marker = new OpenLayers.Marker(pos);
     62                var content = "<div><b>Postcode:</b> " + postcode + "<br /><b>Location:</b> " + easting + ", " + northing + "<br /><b>Source:</b> " + source_name + "<br /><b>ID:</b> " + id + "</div>";
     63
     64        var marker = osMap.createMarker(pos, null, content);
    5965        markers.addMarker(marker);               
    6066        }
Note: See TracChangeset for help on using the changeset viewer.