Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/883 layer naming #1094

Merged
merged 26 commits into from
May 30, 2022
Merged

Feature/883 layer naming #1094

merged 26 commits into from
May 30, 2022

Conversation

jacobwod
Copy link
Member

The purpose of this fix to ensure that we have a standard way of identifying what kind of layer an OL layer is, i.e. its intended usage in Hajk.

The main difference is that we go from "custom" (erroneous) solution with layerType being a real property on each ol/layer instance. Instead we now utilise the set/get as intended for ol/layers. So, basically, we go from:

someLayer.layerType => someLayer.get("layerType")

I've ensured to set one of the following values for layerType on each layer:

layer
group
system

Closes #883.

@jacobwod jacobwod requested a review from Hallbergs May 30, 2022 13:03
@jacobwod jacobwod linked an issue May 30, 2022 that may be closed by this pull request
@Hallbergs Hallbergs merged commit f540dc0 into develop May 30, 2022
@Hallbergs Hallbergs deleted the feature/883-layer-naming branch May 30, 2022 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Normalise OL Layer's naming inside Hajk
2 participants