From b7a4be7282b573543442d58c11a0304bc1c7aacd Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 20 Jan 2014 08:28:33 +0000 Subject: [PATCH] WORK IN PROGRESS plugin to draw the scoring regions on the map for #741 --- plugins/regions.user.js | 149 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 plugins/regions.user.js 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(); + + + $("