<div dir="ltr">Hi GeoJsers,<div><br></div><div>I'm seeing some weird behavior during a Minerva refactor, which is likely on my end, but I'd like to take the opportunity to get the blessed version of deleting layers in GeoJs.</div><div><br></div><div>My GeoJs map is 'map', and I'm creating multiple feature layers, and also some WMS layers.</div><div><br></div><div>I've done various combinations of calling 'map.deleteLayer', 'layer.clear', 'map.draw' to try deleting feature layers.  What is the correct way to do it?</div><div><br></div><div>e.g. to create and then delete a layer would I do:</div><div><br></div><div>var map = geo.map({whatever})</div><div>var layer = map.createLayer('feature');</div><div>layer.clear();</div><div>map.deleteLayer(layer);</div><div>map.draw();</div><div><br></div><div><br></div><div>Thanks</div><div><br></div></div>