size portals by their level. Slightly modified patch by OshiHidra. Fixes #24, #29

This commit is contained in:
Stefan Breunig
2013-02-10 19:45:25 +01:00
parent 686497501b
commit a6ae188548

View File

@ -226,12 +226,14 @@ window.renderPortal = function(ent) {
} }
var team = getTeam(ent[2]); var team = getTeam(ent[2]);
var lvWeight = Math.max(2, portalLevel / 1.5);
var lvRadius = portalLevel + 3;
var p = L.circleMarker(latlng, { var p = L.circleMarker(latlng, {
radius: 7, radius: lvRadius,
color: ent[0] == selectedPortal ? COLOR_SELECTED_PORTAL : COLORS[team], color: ent[0] == selectedPortal ? COLOR_SELECTED_PORTAL : COLORS[team],
opacity: 1, opacity: 1,
weight: 3, weight: lvWeight,
fillColor: COLORS[team], fillColor: COLORS[team],
fillOpacity: 0.5, fillOpacity: 0.5,
clickable: true, clickable: true,