diff --git a/code/portal_detail_display.js b/code/portal_detail_display.js index 5ad52422..764fda7d 100644 --- a/code/portal_detail_display.js +++ b/code/portal_detail_display.js @@ -156,8 +156,12 @@ window.selectPortal = function(guid) { if(portals[guid]) { // resonatorsSetSelectStyle(guid); - portals[guid].bringToFront(); + setMarkerStyle(portals[guid], true); + + if (map.hasLayer(portals[guid])) { + portals[guid].bringToFront(); + } } return update;