nasa-gibs/worldview

[DEVELOP] Error changing date when coordinate location marker is present

edplato opened this issue · 4 comments

@edplato It looks like the location markers are being added to the map layers array and, since the location marker doesn't have a wv property, it breaks here. Other map items like event markers/tracks and measurements are not included in this layers array which otherwise only includes Worldview imagery layers. I think the right fix might be to change the way the location marker gets added to the map so it doesn't get picked up along with imagery layers elsewhere in the app which seems like it has the potential to cause other bugs. Any thoughts?
Screen Shot 2021-08-30 at 12 10 52 PM

To clarify, other map items are created as "overlays" rather than "layers" and so don't get included in the map layers array. I'm just curious if there is a reason the location marker needs to be a vector layer?

That makes sense. I based it off the OL examples page creating a VectorLayer to add a marker. I'm not sure what limitations if any there are by refactoring it to an overlay vs a layer.

I'm working through that now... it looks like we are making vector layers to render measurements but they aren't being added to the map in the same way so they aren't showing up in the layers array. I'll try to figure it out.