We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello every one, I use nominatim geocoding and it return always location not found even the name is corrrect. This is the code to reproduce the issue
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet-search/2.9.9/leaflet-search.src.css" /> <style> .search-input { font-family:Courier } .search-input, .leaflet-control-search { max-width:400px; } #map{ height: 100vh; width: 100%; } </style> </head> <body> <h3><a href=""><big>◄</big> Leaflet.Control.Search</a></h3> <h4>GeoCode Search Example: <em>search locations name by Nominatim Openstreetmap Service</em></h4> <div id="map"></div> <div id="post-it"> <b>Search values:</b><br /> OpenStreetMap Data offer by <br /> <small><a href="http://wiki.openstreetmap.org/wiki/Nominatim">nominatim.osm.org</a></small> </div> <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-search/2.9.9/leaflet-search.src.js"></script> <script> var map = new L.Map('map', {zoom: 9, center: new L.latLng([41.575730,13.002411]) }); map.addLayer(new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png')); //base layer map.addControl( new L.Control.Search({ url: 'https://nominatim.openstreetmap.org/search?format=json&q={s}', jsonpParam: 'json_callback', propertyName: 'display_name', propertyLoc: ['lat','lon'], marker: L.circleMarker([0,0],{radius:30}), autoCollapse: true, autoType: false, minLength: 2 }) ); </script> </body> </html>
The text was updated successfully, but these errors were encountered:
thats right. downloaded example(nominatim) doesnt work too So I use 2.9.8 and it works!
Sorry, something went wrong.
No branches or pull requests
Hello every one,
I use nominatim geocoding and it return always location not found even the name is corrrect.
This is the code to reproduce the issue
The text was updated successfully, but these errors were encountered: