-
Notifications
You must be signed in to change notification settings - Fork 0
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
GSLUX-650: Time layers on map #86
Conversation
GitHub Pages links: * Luxembourg-geoportail: https://geoportail-luxembourg.github.io/luxembourg-geoportail/GSLUX-650-TimeLayersMap/ |
414ad16
to
d5d501d
Compare
d5d501d
to
e5b6d97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this nice functionality and the refactoring @AlitaBernachot !
One minor things I noticed when testing was that the slider-thumb
does not always land exactly on the click position when clicking on the slider
on the first click, while it does on the second click. But I think this can be improved later.
} else if (+(maxValue.value - value) < +(minValue.value - value)) { | ||
maxValue.value = value | ||
} else { | ||
maxValue.value = value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be minValue
to move the left slider if the click is closer to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, thx!
olLayer.setOpacity(layer.opacity as number) | ||
|
||
if (layer.metadata?.hasOwnProperty('attribution')) { | ||
// TODO: fix this to display attribution, but at that time, this brokes the vue runtime-dom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe needs a rebase after the attribution merge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, will remove this since attribution is now handled by a vue component.
|
||
const olLayer = new MapLibreLayer({ | ||
maplibreOptions: options, | ||
label: layer.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also be included in destructuring.
e84a455
to
a4a87f8
Compare
a4a87f8
to
f9daa66
Compare
Thank you for reporting this! some unneeded extra watchers were causing this. Now, it is fixed. |
JIRA issue
https://jira.camptocamp.com/browse/GSLUX-650
Description