hide ownership plugin: use core IITC function to get style, rather than hard-coding the parameters
This commit is contained in:
parent
6148ec4258
commit
58b9d1c7d3
@ -2,7 +2,7 @@
|
|||||||
// @id iitc-plugin-highlight-hide-team@vita10gy
|
// @id iitc-plugin-highlight-hide-team@vita10gy
|
||||||
// @name IITC plugin: Hide portal ownership
|
// @name IITC plugin: Hide portal ownership
|
||||||
// @category Highlighter
|
// @category Highlighter
|
||||||
// @version 0.1.0.@@DATETIMEVERSION@@
|
// @version 0.1.1.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -24,7 +24,7 @@ window.plugin.portalHighlighterHideOwnership = function() {};
|
|||||||
window.plugin.portalHighlighterHideOwnership.highlight = function(data) {
|
window.plugin.portalHighlighterHideOwnership.highlight = function(data) {
|
||||||
var scale = window.portalMarkerScale();
|
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);
|
data.portal.setStyle(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user