mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
Merge 3aed784ce2
into 7c8be12d52
This commit is contained in:
commit
681853213a
1 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* @author j433866 [j433866@gmail.com]
|
* @author j433866 [j433866@gmail.com]
|
||||||
* @copyright Crown Copyright 2019
|
* @author 0xff1ce [github.com/0xff1ce]
|
||||||
|
* @copyright Crown Copyright 2024
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -22,7 +23,7 @@ class ShowOnMap extends Operation {
|
||||||
this.name = "Show on map";
|
this.name = "Show on map";
|
||||||
this.module = "Hashing";
|
this.module = "Hashing";
|
||||||
this.description = "Displays co-ordinates on a slippy map.<br><br>Co-ordinates will be converted to decimal degrees before being shown on the map.<br><br>Supported formats:<ul><li>Degrees Minutes Seconds (DMS)</li><li>Degrees Decimal Minutes (DDM)</li><li>Decimal Degrees (DD)</li><li>Geohash</li><li>Military Grid Reference System (MGRS)</li><li>Ordnance Survey National Grid (OSNG)</li><li>Universal Transverse Mercator (UTM)</li></ul><br>This operation will not work offline.";
|
this.description = "Displays co-ordinates on a slippy map.<br><br>Co-ordinates will be converted to decimal degrees before being shown on the map.<br><br>Supported formats:<ul><li>Degrees Minutes Seconds (DMS)</li><li>Degrees Decimal Minutes (DDM)</li><li>Decimal Degrees (DD)</li><li>Geohash</li><li>Military Grid Reference System (MGRS)</li><li>Ordnance Survey National Grid (OSNG)</li><li>Universal Transverse Mercator (UTM)</li></ul><br>This operation will not work offline.";
|
||||||
this.infoURL = "https://foundation.wikimedia.org/wiki/Maps_Terms_of_Use";
|
this.infoURL = "https://osmfoundation.org/wiki/Terms_of_Use";
|
||||||
this.inputType = "string";
|
this.inputType = "string";
|
||||||
this.outputType = "string";
|
this.outputType = "string";
|
||||||
this.presentType = "html";
|
this.presentType = "html";
|
||||||
|
@ -85,10 +86,10 @@ class ShowOnMap extends Operation {
|
||||||
data = "0, 0";
|
data = "0, 0";
|
||||||
}
|
}
|
||||||
const zoomLevel = args[0];
|
const zoomLevel = args[0];
|
||||||
const tileUrl = "https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png",
|
const tileUrl = "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||||
tileAttribution = "<a href=\"https://wikimediafoundation.org/wiki/Maps_Terms_of_Use\">Wikimedia maps</a> | © <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors",
|
tileAttribution = "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors",
|
||||||
leafletUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.js",
|
leafletUrl = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js",
|
||||||
leafletCssUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.css";
|
leafletCssUrl = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";
|
||||||
return `<link rel="stylesheet" href="${leafletCssUrl}" crossorigin=""/>
|
return `<link rel="stylesheet" href="${leafletCssUrl}" crossorigin=""/>
|
||||||
<style>
|
<style>
|
||||||
#output-text .cm-content,
|
#output-text .cm-content,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue