portal marker scaling: when zoomed out, reduce the scale of portal markers
the stock intel map has done this for a while, so lets try it in IITC
This commit is contained in:
@ -22,7 +22,9 @@
|
||||
window.plugin.portalHighlighterHideOwnership = function() {};
|
||||
|
||||
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};
|
||||
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};
|
||||
data.portal.setStyle(params);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user