From 58b9d1c7d3c28d113566814de1df5e552b608cbd Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Tue, 3 Mar 2015 20:24:40 +0000 Subject: [PATCH] hide ownership plugin: use core IITC function to get style, rather than hard-coding the parameters --- plugins/portal-highlighter-hide-team.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/portal-highlighter-hide-team.user.js b/plugins/portal-highlighter-hide-team.user.js index 845cf418..e7f411dc 100644 --- a/plugins/portal-highlighter-hide-team.user.js +++ b/plugins/portal-highlighter-hide-team.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-highlight-hide-team@vita10gy // @name IITC plugin: Hide portal ownership // @category Highlighter -// @version 0.1.0.@@DATETIMEVERSION@@ +// @version 0.1.1.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -24,7 +24,7 @@ window.plugin.portalHighlighterHideOwnership = function() {}; window.plugin.portalHighlighterHideOwnership.highlight = function(data) { var scale = window.portalMarkerScale(); - var params = {fillColor: COLORS[TEAM_NONE], color: COLORS[TEAM_NONE], opacity: 1, fillOpacity: 0.5, radius: 7*scale+(L.Browser.mobile ? PORTAL_RADIUS_ENLARGE_MOBILE*scale : 0), weight: 2}; + var params = getMarkerStyleOptions({team: TEAM_NONE, level: 0}); data.portal.setStyle(params); }