2022-12-02 10:13:03 +00:00
|
|
|
/*\
|
|
|
|
title: $:/plugins/tiddlywiki/geospatial/startup.js
|
|
|
|
type: application/javascript
|
|
|
|
module-type: startup
|
|
|
|
|
|
|
|
Geospatial initialisation
|
|
|
|
|
|
|
|
\*/
|
|
|
|
(function(){
|
|
|
|
|
|
|
|
/*jslint node: true, browser: true */
|
|
|
|
/*global $tw: false */
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
// Export name and synchronous status
|
|
|
|
exports.name = "geospatial";
|
|
|
|
exports.after = ["load-modules"];
|
|
|
|
exports.synchronous = true;
|
|
|
|
|
|
|
|
exports.startup = function() {
|
2022-12-07 09:17:27 +00:00
|
|
|
// var openlocationcode = require("$:/plugins/tiddlywiki/geospatial/openlocationcode.js");
|
2022-12-02 10:13:03 +00:00
|
|
|
// var turf = require("$:/plugins/tiddlywiki/geospatial/turf.js");
|
2023-02-12 16:49:32 +00:00
|
|
|
// Load Leaflet
|
|
|
|
if($tw.browser) {
|
|
|
|
$tw.Leaflet = require("$:/plugins/tiddlywiki/geospatial/leaflet.js");
|
|
|
|
// Add Leaflet Marker Cluster Plugin
|
|
|
|
require("$:/plugins/tiddlywiki/geospatial/leaflet.markercluster.js");
|
|
|
|
}
|
2022-12-02 10:13:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
})();
|