mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Tidied up 'Show on map' operation
This commit is contained in:
parent
018532016b
commit
9dd5234962
@ -228,6 +228,7 @@
|
|||||||
"Convert speed",
|
"Convert speed",
|
||||||
"Convert data units",
|
"Convert data units",
|
||||||
"Convert co-ordinate format",
|
"Convert co-ordinate format",
|
||||||
|
"Show on map",
|
||||||
"Parse UNIX file permissions",
|
"Parse UNIX file permissions",
|
||||||
"Swap endianness",
|
"Swap endianness",
|
||||||
"Parse colour code",
|
"Parse colour code",
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Operation from "../Operation";
|
import Operation from "../Operation.mjs";
|
||||||
import {FORMATS, convertCoordinates} from "../lib/ConvertCoordinates";
|
import {FORMATS, convertCoordinates} from "../lib/ConvertCoordinates.mjs";
|
||||||
import OperationError from "../errors/OperationError";
|
import OperationError from "../errors/OperationError.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show on map operation
|
* Show on map operation
|
||||||
@ -22,7 +22,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 = "";
|
this.infoURL = "https://foundation.wikimedia.org/wiki/Maps_Terms_of_Use";
|
||||||
this.inputType = "string";
|
this.inputType = "string";
|
||||||
this.outputType = "string";
|
this.outputType = "string";
|
||||||
this.presentType = "html";
|
this.presentType = "html";
|
||||||
@ -90,7 +90,7 @@ class ShowOnMap extends Operation {
|
|||||||
leafletUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.js",
|
leafletUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.js",
|
||||||
leafletCssUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.css";
|
leafletCssUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.css";
|
||||||
return `<link rel="stylesheet" href="${leafletCssUrl}" crossorigin=""/>
|
return `<link rel="stylesheet" href="${leafletCssUrl}" crossorigin=""/>
|
||||||
<style>#output-html { white-space: normal; }</style>
|
<style>#output-html { white-space: normal; padding: 0; }</style>
|
||||||
<div id="presentedMap" style="width: 100%; height: 100%;"></div>
|
<div id="presentedMap" style="width: 100%; height: 100%;"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var mapscript = document.createElement('script');
|
var mapscript = document.createElement('script');
|
||||||
|
Loading…
Reference in New Issue
Block a user