From 9dd523496279390c72b36be82c690e38eda3a35c Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 30 Aug 2019 11:56:48 +0100 Subject: [PATCH] Tidied up 'Show on map' operation --- src/core/config/Categories.json | 1 + src/core/operations/ShowOnMap.mjs | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/config/Categories.json b/src/core/config/Categories.json index 89b93b87..bfec8d72 100755 --- a/src/core/config/Categories.json +++ b/src/core/config/Categories.json @@ -228,6 +228,7 @@ "Convert speed", "Convert data units", "Convert co-ordinate format", + "Show on map", "Parse UNIX file permissions", "Swap endianness", "Parse colour code", diff --git a/src/core/operations/ShowOnMap.mjs b/src/core/operations/ShowOnMap.mjs index 4a362fec..9c81a27b 100644 --- a/src/core/operations/ShowOnMap.mjs +++ b/src/core/operations/ShowOnMap.mjs @@ -4,9 +4,9 @@ * @license Apache-2.0 */ -import Operation from "../Operation"; -import {FORMATS, convertCoordinates} from "../lib/ConvertCoordinates"; -import OperationError from "../errors/OperationError"; +import Operation from "../Operation.mjs"; +import {FORMATS, convertCoordinates} from "../lib/ConvertCoordinates.mjs"; +import OperationError from "../errors/OperationError.mjs"; /** * Show on map operation @@ -22,7 +22,7 @@ class ShowOnMap extends Operation { this.name = "Show on map"; this.module = "Hashing"; this.description = "Displays co-ordinates on a slippy map.

Co-ordinates will be converted to decimal degrees before being shown on the map.

Supported formats:
This operation will not work offline."; - this.infoURL = ""; + this.infoURL = "https://foundation.wikimedia.org/wiki/Maps_Terms_of_Use"; this.inputType = "string"; this.outputType = "string"; this.presentType = "html"; @@ -90,7 +90,7 @@ class ShowOnMap extends Operation { leafletUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.js", leafletCssUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.css"; return ` - +