nasa-gibs / worldview

Interactive interface for browsing global, full-resolution satellite imagery
https://worldview.earthdata.nasa.gov/
Other
694 stars 184 forks source link

Optimize client for vector capabilities #1711

Closed ZachTRice closed 4 years ago

ZachTRice commented 5 years ago

Description Using OL6 + 10k+ vector points, slows the application to an unacceptable level. Optimization to the client (via mainly Openlayers 6 features) needs to occur before some of these larger data sets can be accomodated.

Suggestions

ZachTRice commented 5 years ago

@mcechini @rboller - webGL does not support selecting vector features; i.e. we wouldn't be able to click and inspect the data.. See this issue (it's not documented): https://github.com/openlayers/openlayers/issues/9501

ZachTRice commented 5 years ago

Also related to this ticket (performance): "Ol 6 beta performance problem with multiple layers" https://github.com/openlayers/openlayers/issues/9457

I mentioned this in our brown bag. Layers are now rendered on separate canvases and this could reduce performance. I have added a task in this ticket to evaluate multiple layer performance.

rboller commented 5 years ago

@ZachTRice that's good to know... we'll need to be able to select vector features so perhaps WebGL isn't the approach we should take unless it gets addressed in OL.

mcechini commented 5 years ago

Hmmm, ok. Sounds like WebGL may not be the silver bullet we were hoping for. But then again OL6 doesn't sound like it's all that great either.

ahocevar commented 5 years ago

The performance issue with multiple vector layers will be fixed with openlayers/openlayers#9584.

ZachTRice commented 5 years ago

Great, thanks for the update @ahocevar

jahow commented 5 years ago

Hi! dropping by to let you know webgl layers in OL now support hit detection, with the limitation that only the topmost features can be detected for now. See: https://github.com/openlayers/openlayers/pull/9655