-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Popup - Add layer ID and feature ID as data attributes #4992
Conversation
@Gustry good catch! |
I fully agree with this modification. We will have break in Javascript scripts trying to find the previous hidden field, but the needed modification will not be hard to do |
a65f294
to
19e4335
Compare
For a raster, it gives : <div data-layer-id="local_raster_layer_c4c2ec5e_7567_476b_bf78_2b7c64f32615" data-feature-id="" class="lizmapPopupSingleFeature"> Do we want it empty, or not available ? |
a2c3cb3
to
52a6979
Compare
9c69dbe
to
97f911d
Compare
97f911d
to
4e794a5
Compare
PR ready for review @mind84 @rldhont @mdouchin @nboisteault |
I'll probably have to modify several custom Thanks! |
No problem. |
According to what I understood, using data-attributes looks is better ?
https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
I see in many places, that in the code, this hidden input value is used.
And then this value need to be split with
.
to separate layer ID and feature ID :I'm proposing
Linked to #4990
Need to check for raster