[Geojs-users] deleting layers in geojs 0.8.0
Michael Grauer
michael.grauer at kitware.com
Thu Mar 17 13:20:43 EDT 2016
Thanks for the info.
The weirdness is all on my end I realized. I thought `this` was `that`,
but it was `this`.
On Thu, Mar 17, 2016 at 12:06 PM, Jonathan Beezley <
jonathan.beezley at kitware.com> wrote:
> 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/e0e9fdf7/attachment-0001.html>
More information about the Geojs-users
mailing list