diff --git a/plugins/tiddlywiki/geospatial/geotools.js b/plugins/tiddlywiki/geospatial/geotools.js index 6c941ecbd..9d3c534f6 100644 --- a/plugins/tiddlywiki/geospatial/geotools.js +++ b/plugins/tiddlywiki/geospatial/geotools.js @@ -6,7 +6,7 @@ module-type: library Geospatial utilities \*/ -(function(){ + "use strict"; var turf = require("$:/plugins/tiddlywiki/geospatial/turf.js"); @@ -34,5 +34,3 @@ exports.parsePoint = function(str) { // Return the string now we know it is a valid GeoJSON Point return json; } - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/helper.js b/plugins/tiddlywiki/geospatial/operators/helper.js index d5e14d1b4..e083f4471 100644 --- a/plugins/tiddlywiki/geospatial/operators/helper.js +++ b/plugins/tiddlywiki/geospatial/operators/helper.js @@ -6,7 +6,7 @@ module-type: filteroperator Filter operators for geospatial helpers \*/ -(function(){ + "use strict"; var turf = require("$:/plugins/tiddlywiki/geospatial/turf.js"); @@ -17,5 +17,3 @@ exports.geopoint = function(source,operator,options) { alt = $tw.utils.parseNumber(operator.operands[2] || "0"); return [JSON.stringify(turf.point([long,lat,alt]))]; }; - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/lookup.js b/plugins/tiddlywiki/geospatial/operators/lookup.js index ac9435185..da152c15b 100644 --- a/plugins/tiddlywiki/geospatial/operators/lookup.js +++ b/plugins/tiddlywiki/geospatial/operators/lookup.js @@ -6,7 +6,6 @@ module-type: filteroperator Filter operators for geospatial lookup \*/ -(function(){ "use strict"; var turf = require("$:/plugins/tiddlywiki/geospatial/turf.js"), @@ -38,5 +37,3 @@ function getPolygonsContainingPoint(featureCollection,point) { }); return properties; } - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/measurement.js b/plugins/tiddlywiki/geospatial/operators/measurement.js index 9bf03bae1..6b88bb3c4 100644 --- a/plugins/tiddlywiki/geospatial/operators/measurement.js +++ b/plugins/tiddlywiki/geospatial/operators/measurement.js @@ -6,7 +6,7 @@ module-type: filteroperator Filter operators for geospatial measurement \*/ -(function(){ + "use strict"; var turf = require("$:/plugins/tiddlywiki/geospatial/turf.js"), @@ -47,5 +47,3 @@ exports.geonearestpoint = function(source,operator,options) { return []; } }; - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/olc.js b/plugins/tiddlywiki/geospatial/operators/olc.js index 2ab6a2f19..c0c3dbfef 100644 --- a/plugins/tiddlywiki/geospatial/operators/olc.js +++ b/plugins/tiddlywiki/geospatial/operators/olc.js @@ -6,7 +6,7 @@ module-type: filteroperator Filter operators for open location code conversions \*/ -(function(){ + "use strict"; var openlocationcode = require("$:/plugins/tiddlywiki/geospatial/openlocationcode.js"), @@ -48,5 +48,3 @@ exports["olc-encode"] = function(source,operator,options) { } return [olc]; }; - -})(); diff --git a/plugins/tiddlywiki/geospatial/operators/transformation.js b/plugins/tiddlywiki/geospatial/operators/transformation.js index 0f9f1bdd4..3538be3ee 100644 --- a/plugins/tiddlywiki/geospatial/operators/transformation.js +++ b/plugins/tiddlywiki/geospatial/operators/transformation.js @@ -6,7 +6,7 @@ module-type: filteroperator Filter operators for geospatial transformation \*/ -(function(){ + "use strict"; var turf = require("$:/plugins/tiddlywiki/geospatial/turf.js"), @@ -80,6 +80,3 @@ function geojsonOp(geojsonObjects, op) { }); return turf.featureCollection(resultFeatures); } - - -})(); diff --git a/plugins/tiddlywiki/geospatial/startup.js b/plugins/tiddlywiki/geospatial/startup.js index aaa794cd1..43ee207dd 100644 --- a/plugins/tiddlywiki/geospatial/startup.js +++ b/plugins/tiddlywiki/geospatial/startup.js @@ -6,7 +6,7 @@ module-type: startup Geospatial initialisation \*/ -(function(){ + "use strict"; // Export name and synchronous status @@ -71,5 +71,3 @@ exports.startup = function() { } }); }; - -})(); diff --git a/plugins/tiddlywiki/geospatial/widgets/geobaselayer.js b/plugins/tiddlywiki/geospatial/widgets/geobaselayer.js index 6c59e7adf..797964267 100644 --- a/plugins/tiddlywiki/geospatial/widgets/geobaselayer.js +++ b/plugins/tiddlywiki/geospatial/widgets/geobaselayer.js @@ -6,9 +6,7 @@ module-type: widget geobaselayer widget to represent a base layer for a geomap widget. Clone of the data widget \*/ -(function(){ + "use strict"; exports.geobaselayer = require("$:/core/modules/widgets/data.js").data; - -})(); diff --git a/plugins/tiddlywiki/geospatial/widgets/geolayer.js b/plugins/tiddlywiki/geospatial/widgets/geolayer.js index 12d5e2c25..301c9630c 100644 --- a/plugins/tiddlywiki/geospatial/widgets/geolayer.js +++ b/plugins/tiddlywiki/geospatial/widgets/geolayer.js @@ -6,9 +6,7 @@ module-type: widget geolayer widget to represent a layer for a geomap widget. Clone of the data widget \*/ -(function(){ + "use strict"; exports.geolayer = require("$:/core/modules/widgets/data.js").data; - -})(); diff --git a/plugins/tiddlywiki/geospatial/widgets/geomap.js b/plugins/tiddlywiki/geospatial/widgets/geomap.js index 4c98ecb09..a5e24d80d 100644 --- a/plugins/tiddlywiki/geospatial/widgets/geomap.js +++ b/plugins/tiddlywiki/geospatial/widgets/geomap.js @@ -6,7 +6,7 @@ module-type: widget Leaflet map widget \*/ -(function(){ + "use strict"; var Widget = require("$:/core/modules/widgets/widget.js").widget; @@ -348,6 +348,3 @@ GeomapWidget.prototype.refresh = function(changedTiddlers) { }; exports.geomap = GeomapWidget; - -})(); -