From ce3d46b20c917c6ce71d877af6318aef6921cd2d Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Sun, 14 Jun 2009 22:19:08 +0000 Subject: Use a unique data file name for our OpenStreetMap data. Print an error if we don't have data for any hosts. Fixes bug 3530. svn path=/trunk/; revision=28728 --- ipmap.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ipmap.html') diff --git a/ipmap.html b/ipmap.html index c9bae85b46..e3e6eb7b76 100644 --- a/ipmap.html +++ b/ipmap.html @@ -26,8 +26,12 @@ ); map.addLayer(new OpenLayers.Layer.OSM.Mapnik("Mapnik")); + map_file = "ipmap.txt"; + if (document.location.hash.length > 1) { + map_file = document.location.hash.substr(1); + } map.addLayer(new OpenLayers.Layer.Text("IP Locations", { - location: "ipmap.txt", projection: new OpenLayers.Projection("EPSG:4326")} ) ); + location: map_file, projection: new OpenLayers.Projection("EPSG:4326")} ) ); var lonlat = (new OpenLayers.LonLat(0.0, 0.0)); lonlat.transform(map.displayProjection, map.projection); -- cgit v1.2.3