From 85876ad039f7793cf8147b7dd1927d5ee851c988 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Thu, 26 Sep 2013 17:36:36 +0100 Subject: [PATCH] 1st addition of portal name plugin needs work so it disabled itself when portals are too dense. could be a basic zoom level check, or could be based on local portal density? --- plugins/portal-names.user.js | 83 ++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 plugins/portal-names.user.js diff --git a/plugins/portal-names.user.js b/plugins/portal-names.user.js new file mode 100644 index 00000000..b7a2dfb5 --- /dev/null +++ b/plugins/portal-names.user.js @@ -0,0 +1,83 @@ +// ==UserScript== +// @id iitc-plugin-portal-names@zaso +// @name IITC plugin: Portal Names +// @category Layer +// @version 0.1.0.@@DATETIMEVERSION@@ +// @namespace https://github.com/jonatkins/ingress-intel-total-conversion +// @updateURL @@UPDATEURL@@ +// @downloadURL @@DOWNLOADURL@@ +// @description [@@BUILDNAME@@-@@BUILDDATE@@] Show portal names on the map +// @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.portalNames = function() {}; +window.plugin.portalNames.labelLayers = {}; +window.plugin.portalNames.labelLayerGroup = null; + +window.plugin.portalNames.setupCSS = function() { + $("