Pbs with filters #2763
Replies: 3 comments
-
Looks like a bad string...? Make sure to use typescript... |
Beta Was this translation helpful? Give feedback.
-
@HarelM It's possible, This is the content of my session variable : It's a valid JSON, confirmed by a online tool. After, I have no idea to convert this data in compatible data for Maplibre filter. Anyone would have an idea ? Thanks Sylvain |
Beta Was this translation helpful? Give feedback.
-
So, after many difficulties, here is a partial solution: Partial solution, because I'm still trying to figure out how to combine several filters (second line of the comment). Thks Sylvain |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm working on a mapping application in which I have a JSON style loaded with points representing breweries.
I declare my source (in this case the style), my layer. No problem.
This application requires authentication (login, password, sessions...). Each identified user has authorized communes (e.g. user 1 will have Paris as authorized commune, and another Berlin etc.). I retrieve a session variable which is a JSON object with all authorized commune codes.
I rework the code provided so that it fits into the "filter" field of map.addLayer...
Here's the problem: when I enter this variable in the "filter" field, it doesn't work, but when I enter the hard data instead, it does....
That doesn't work :
That works !!
Why this problem and is there a solution ?
Thanks
Sylvain
Beta Was this translation helpful? Give feedback.
All reactions