Closed soukac98 closed 2 months ago
this setting in the QGIS Lizmap plugin
leads to the search field at the top right (the terms have been changed to German)
this setting in the QGIS Lizmap plugin
leads to the search field at the top right (the terms have been changed to German)
It doesn't seem to work for me : I tried it before, using a precise address , It shows no data...
@soukac98 And what does it return on osm.org website ? It's the same endpoint, nominatim.
Then you can do F12 in Lizmap Web Client to see returned data from https://nominatim.openstreetmap.org/ui/search.html website
@soukac98 And what does it return on osm.org website ? It's the same endpoint, nominatim.
Then you can do F12 in Lizmap Web Client to see returned data from https://nominatim.openstreetmap.org/ui/search.html website
this is what it returns :
However, the address is recognizable on osm's website, if that's what you meant
Please use F12 to open the developer toolbox in your webbrowser to see the request in the backend.
Lizmap Web Client is filtering the data according to your "allowed map extent" for your project etc (or visible extent) (can you pan on Paris ?)
Please use F12 to open the developer toolbox in your webbrowser to see the request in the backend.
Lizmap Web Client is filtering the data according to your "allowed map extent" for your project etc (or visible extent) (can you pan on Paris ?)
the only error i could catch up is the title of the refresh button next to my search bar..
Then, you have a "Network" tab, you should see requests to the Nominatim server.
Then, you have a "Network" tab, you should see requests to the Nominatim server.
I did, but i am still lost on what the problem really is, I am not very familiar with it.. I saw a similar issue here on GItHub #1548 , still not working
- Go in your network tab
- Empty it, with the trash icon
- Start typing in the search bar, press enter
- Check the nominatim request which has been sent, and you can see the result of the request. You can copy/paste the query
Hello again, i am now familiar with the console and the network tab, thanks to you :D so i added a new json script to media files, that adds a search bar, but it doesn't show any adress in my map : i added markers to the script but it either blocks the entire map loading or it doesn't seem to recognize the marker (undefined), here is my script , maybe you can point me into the right direction
Sorry, I won't debug your script myself. Please follow the instruction in my previous message, there is already a native search tool with Nominatim, we would be nice to understand first why it doesn't fit your need. I know there is a some extent restriction for instance, when sending the nominatim request.
Hi, i have the same problem as soukac98 and to continue the discussion, in the network tab, the nominatim request that is returned by my project Lizmap is ok and gives a good answer (i changed the name of my domain but this request sends a json file) :
https://mylizmap/osm/nominatim?repository=epfl2023v2&project=20240412_projet_lizmap&query=place%20du%20capitole%20toulouse&bbox=1.348681%2C43.545515%2C1.432578%2C43.606323
But in my project, i have only this which is display :
For information, the search by address is working fine on others of my projects...
I don't understand why the existing search with “Nominatim (OSM)” should not work. I have many different Lizmap versions in use and it works everywhere.
But I have an idea: Could it be that addresses are being searched that are outside the coordinate range defined for the QGIS server? In this case, the search doesn't actually work for me either, but I think that's ok.
In the example above, the search was for Paris but the section shows an area in Germany
if the coordinate range is large enough, the address will be found by me: https://cx21.webgis.biz/ Project Test (Background map OpenStreetMap, scale 1:2500)
From my understanding Lizmap (see lizmap code) get the current project BBOX and search only inside this bounding box.
In the message @guenterw from we can see that this parameter is specified in the URL :
https://mylizmap/osm/nominatim?repository=epfl2023v2&project=20240412_projet_lizmap&query=place%20du%20capitole%20toulouse&bbox=1.348681%2C43.545515%2C1.432578%2C43.606323
It was indeed the bbox of my QGIS project which was too restricted... It works now, thanks for your help !
It was indeed the bbox of my QGIS project which was too restricted... It works now, thanks for your help !
It was indeed the bbox of my QGIS project which was too restricted... It works now, thanks for your help !
I modified the extent of my curent project, but it still doesn't work. I also tried searching inside and outside the bbox , but the "no results" still persists. Maybe I am missing something?
The tip about the project extent was mentioned earlier. It's indeed taken into account to determine if a result can be shown to the user.
Maybe I am missing something?
Please, as describe, use the "Network tab" of your web-browser, when you enter an OSM address, you will be able to see if you got at least one response from the server etc.
The tip about the project extent was mentioned earlier. It's indeed taken into account to determine if a result can be shown to the user.
Maybe I am missing something?
Please, as describe, use the "Network tab" of your web-browser, when you enter an OSM address, you will be able to see if you got at least one response from the server etc.
Yes, that is exactly what I verify, no response from the server
Can you share the HTTP request and the response, as already described before https://github.com/3liz/lizmap-web-client/issues/4372#issuecomment-2084760880
Please share your HTTP request parameters which has been sent, your HTTP code, the status of the request etc. There is something wrong indeed, but we won't be able to help you with a screenshot. For us, it seems Nominatim is working fine. You right click on the request, and copy as curl for instance
This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎
What is the question? (in English)
How to add a tool/search bar into lizmap, so that the user can search by address?
Versions, safeguards, check summary etc
https://github.com/3liz/lizmap-web-client/releases/tag/3.7.6
Check Lizmap plugin
Operating system
windows 10 professionnel
Browsers
Chrome
Browsers version
Chrome
Relevant log output
No response