Closed maureentsakiris closed 6 years ago
Even though layers exist, hiding them triggers an error on some of them
if( map.getLayer( layer ) ){ map.setLayoutProperty( layer, 'visibility', 'visible' ) }
blob:http://127.0.0.1:8888/9ac8d508-2686-496e-bef8-583cbae88675:14 Uncaught TypeError: Cannot read property 'icon' of undefined
Even though layers exist, hiding them triggers an error on some of them