s/Highligher/Highlighter/
This commit is contained in:
@ -19,15 +19,15 @@
|
||||
// PLUGIN START ////////////////////////////////////////////////////////
|
||||
|
||||
// use own namespace for plugin
|
||||
window.plugin.portalHighligherHideOwnership = function() {};
|
||||
window.plugin.portalHighlighterHideOwnership = function() {};
|
||||
|
||||
window.plugin.portalHighligherHideOwnership.highlight = function(data) {
|
||||
window.plugin.portalHighlighterHideOwnership.highlight = function(data) {
|
||||
var params = {fillColor: COLORS[TEAM_NONE], color: COLORS[TEAM_NONE], opacity: 1, fillOpacity: 0.5, radius: 7+(L.Browser.mobile ? PORTAL_RADIUS_ENLARGE_MOBILE : 0), weight: 2};
|
||||
data.portal.setStyle(params);
|
||||
}
|
||||
|
||||
var setup = function() {
|
||||
window.addPortalHighlighter('Hide portal ownership', window.plugin.portalHighligherHideOwnership.highlight);
|
||||
window.addPortalHighlighter('Hide portal ownership', window.plugin.portalHighlighterHideOwnership.highlight);
|
||||
}
|
||||
|
||||
// PLUGIN END //////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user