Skip to content

Evaluate if reactivity works as expected #12

@spectrachrome

Description

@spectrachrome

Problem

When the style is updated by the user, OpenLayers-internal keys are being updated, but EOX-specific keys only update once at the loading of the dataset/style combination. This is because the actual map layers are not being rebuilt anymore each time the style is changed, but only generated when necessary (i.e. one time when everything is loaded).

This breaks hot-reloading of all EOX keys.

The problem fundamentally comes from the choice to use Lit, which does not have deep reactivity, and keeps us from updating data deep inside the style, because Lit just does not see it.

Functionality matrix

It is likely that all of the entries are affected by the same reactivity bug.

GeoJSON FGB GeoTIFF Notes
tooltip appears with tooltip? Waiting for upstream support
tooltip updates with tooltip? Waiting for upstream support
legend appears with legend?
legend updates with legend?
adding jsonform with vars updates layercontrol?
changing the form values in layercontrol updates map style?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions