diff --git a/plugins/regions.user.js b/plugins/regions.user.js new file mode 100644 index 00000000..2f20b6cc --- /dev/null +++ b/plugins/regions.user.js @@ -0,0 +1,149 @@ +// ==UserScript== +// @id iitc-plugin-regions@jonatkins +// @name IITC plugin: Show the local score regions +// @category Layer +// @version 0.1.0.@@DATETIMEVERSION@@ +// @namespace https://github.com/jonatkins/ingress-intel-total-conversion +// @updateURL @@UPDATEURL@@ +// @downloadURL @@DOWNLOADURL@@ +// @description [@@BUILDNAME@@-@@BUILDDATE@@] Show the local scoring regions on the map. No actual scores - just the region areas. +// @include https://www.ingress.com/intel* +// @include http://www.ingress.com/intel* +// @match https://www.ingress.com/intel* +// @match http://www.ingress.com/intel* +// @grant none +// ==/UserScript== + +@@PLUGINSTART@@ + +// PLUGIN START //////////////////////////////////////////////////////// + + +// use own namespace for plugin +window.plugin.regions = function() {}; + +window.plugin.regions.setup = function() { + @@INCLUDERAW:external/s2geometry.js@@ + + + window.plugin.regions.regionLayer = L.layerGroup(); + + + $("