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:
Jon Atkins
2014-01-26 17:53:10 +00:00
parent 9efe828ccb
commit 980e136508
3 changed files with 24 additions and 6 deletions

View File

@ -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);
}