aboutsummaryrefslogtreecommitdiffstats
path: root/ipmap.html
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-03-02 11:24:31 -0800
committerGerald Combs <gerald@wireshark.org>2018-03-02 21:59:21 +0000
commitf529ab5d0a27173ed68aa017a638b36b3dcf585f (patch)
tree7b580a462fa2e4f30f883b9c0654afc2ac99955b /ipmap.html
parent84c7246e4c086f7bcfd7646a1d9f0c08c13dd41b (diff)
Remove the endpoint "Map" feature.
Remove the endpoint map and its button from the Qt and GTK+ UIs. It depends on GeoIP Legacy for coordinate information and those databases are being deprecated in favor of MaxMind DB. We *could* upgrade the code to use mmdbresolve, but according to https://dev.maxmind.com/geoip/geoip2/geolite2/ they're also going to remove coordinate information from GeoLite2: "In addition, in 2019, latitude and longitude coordinates in the GeoLite2 databases will be removed.* Latitude and longitude coordinates will continue to be provided in GeoIP2 databases. Please check back for updates." Change-Id: I43e1593d282a0f1aae897b1f4724117d1496b21e Reviewed-on: https://code.wireshark.org/review/26229 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ipmap.html')
-rw-r--r--ipmap.html106
1 files changed, 0 insertions, 106 deletions
diff --git a/ipmap.html b/ipmap.html
deleted file mode 100644
index c1e83d0c10..0000000000
--- a/ipmap.html
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Wireshark: IP Location Map</title>
- <style type="text/css">
- body {
- font-family: Arial, Helvetica, sans-serif; font-size: 13px;
- line-height: 17px;
- }
- </style>
- <script type="text/javascript" src="http://openlayers.org/api/OpenLayers.js"></script>
- <script type="text/javascript" src="http://openstreetmap.org/openlayers/OpenStreetMap.js"></script>
-
- <script type="text/javascript">
- <!--
- var map, layer;
- var selectControl, selectedFeature;
-
- function onPopupClose(event) {
- selectControl.unselect(this.feature);
- }
-
- function EndpointSelected(event) {
- var feature = event.feature;
- popup = new OpenLayers.Popup.FramedCloud("endpoint",
- feature.geometry.getBounds().getCenterLonLat(),
- new OpenLayers.Size(25,25),
- "<h3>"+ feature.attributes.title + "</h3>" +
- feature.attributes.description,
- null, true, onPopupClose);
- feature.popup = popup;
- popup.feature = feature;
- map.addPopup(popup);
- }
-
- function EndpointUnselected(event) {
- var feature = event.feature;
- if (feature.popup) {
- popup.feature = null;
- map.removePopup(feature.popup);
- feature.popup.destroy();
- feature.popup = null;
- }
- }
-
- function init() {
- var endpoints = {
- "type": "FeatureCollection",
- "features": [ // Start endpoint list - MUST match hostlist_table.c
- ]
- };
- map = new OpenLayers.Map('map', {
- controls: [
- new OpenLayers.Control.PanZoomBar(),
- new OpenLayers.Control.ZoomBox(),
- new OpenLayers.Control.ScaleLine(),
- new OpenLayers.Control.MousePosition(),
- new OpenLayers.Control.Navigation(),
- new OpenLayers.Control.Attribution()
- ]
- //projection: new OpenLayers.Projection("EPSG:900913"),
- //displayProjection: new OpenLayers.Projection("EPSG:4326"),
- //maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34, 20037508.34, 20037508.34),
- //numZoomLevels: 18,
- //maxResolution: 156543,
- //units: "m"
- });
- layer = new OpenLayers.Layer.WMS("OpenLayers WMS",
- "http://vmap0.tiles.osgeo.org/wms/vmap0",
- {layers: 'basic'},
- {wrapDateLine: true} );
- map.addLayer(layer);
- //map.addLayer(new OpenLayers.Layer.OSM.Mapnik("Mapnik"));
- //map.addLayer(new OpenLayers.Layer.Text("IP Locations", {
- // location: map_file, projection: new OpenLayers.Projection("EPSG:4326")} ) );
- //
- //map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
-
- var geojson_format = new OpenLayers.Format.GeoJSON();
- var vector_layer = new OpenLayers.Layer.Vector("IP Endpoints");
- map.addLayer(vector_layer);
- vector_layer.addFeatures(geojson_format.read(endpoints));
-
- if (endpoints.features.length < 1) {
- document.getElementById("statusmsg").innerHTML = "No endpoints to map";
- } else {
- map.zoomToExtent(vector_layer.getDataExtent());
- }
-
- selectControl = new OpenLayers.Control.SelectFeature(vector_layer);
- map.addControl(selectControl);
- selectControl.activate();
-
- vector_layer.events.on({
- 'featureselected': EndpointSelected,
- 'featureunselected': EndpointUnselected
- });
- }
- // -->
- </script>
- </head>
- <body onload="init()">
- <div id="statusmsg" style="float: right; z-index: 9999;"></div>
- <div id="map" style="z-index: 0;"></div>
- </body>
-</html>