summaryrefslogtreecommitdiff
path: root/ipmap.html
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-06-14 22:19:08 +0000
committerGerald Combs <gerald@wireshark.org>2009-06-14 22:19:08 +0000
commitce3d46b20c917c6ce71d877af6318aef6921cd2d (patch)
tree00466875f4803e01203770521c84e46d1ad54ede /ipmap.html
parent8afdf51d9fd1dcd89393fd8a55b14aedc5ca8bef (diff)
downloadwireshark-ce3d46b20c917c6ce71d877af6318aef6921cd2d.tar.gz
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
Diffstat (limited to 'ipmap.html')
-rw-r--r--ipmap.html6
1 files changed, 5 insertions, 1 deletions
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);