[Geojs-users] deleting layers in geojs 0.8.0

Jonathan Beezley jonathan.beezley at kitware.com
Thu Mar 17 12:06:10 EDT 2016


What is the weird behavior?  There is a bug in the most recently released
version that will cause slowness when you zoom in on a WMS layer.

On Thu, Mar 17, 2016 at 12:00 PM, Michael Grauer <michael.grauer at kitware.com
> wrote:

> 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 it?
>
> e.g. to create and then delete a layer would I do:
>
> var map = geo.map({whatever})
> var layer = map.createLayer('feature');
> layer.clear();
> map.deleteLayer(layer);
> map.draw();
>
>
> Thanks
>
>
> _______________________________________________
> Geojs-users mailing list
> Geojs-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/geojs-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/geojs-users/attachments/20160317/3ddeab66/attachment.html>


More information about the Geojs-users mailing list