ensure portal is rendered above resos

This commit is contained in:
Stefan Breunig 2013-02-15 19:12:15 +01:00
parent e69ba16a23
commit e9fd2e1a2e

View File

@ -294,8 +294,6 @@ window.renderPortal = function(ent) {
window.renderResonators(ent, null); window.renderResonators(ent, null);
window.runHooks('portalAdded', {portal: p}); window.runHooks('portalAdded', {portal: p});
// portalLevel contains a float, need to round down
p.addTo(layerGroup); p.addTo(layerGroup);
} }
@ -434,6 +432,7 @@ window.resonatorsSetStyle = function(portalGuid, resoStyle, lineStyle) {
layer.bringToFront().setStyle(resoStyle); layer.bringToFront().setStyle(resoStyle);
}); });
} }
portals[portalGuid].bringToFront();
} }
// renders a link on the map from the given entity // renders a link on the map from the given entity