[Geojs-users] deleting layers in geojs 0.8.0

Michael Grauer michael.grauer at kitware.com
Thu Mar 17 12:00:26 EDT 2016

Hi GeoJsers,

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.

My GeoJs map is 'map', and I'm creating multiple feature layers, and also
some WMS layers.

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

e.g. to create and then delete a layer would I do:

var map = geo.map({whatever})
var layer = map.createLayer('feature');

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/geojs-users/attachments/20160317/f52593ee/attachment.html>

More information about the Geojs-users mailing list