We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d69d218 + 823914a commit 211dbb7Copy full SHA for 211dbb7
src/main.js
@@ -275,7 +275,7 @@ $(document).ready(function(){
275
function search() {
276
$.get('https://nominatim.openstreetmap.org/search?q='+sanitize($("#search-box input").val())+'&format=json', function(data) {
277
// Navigate to the first result of the search query
278
- map.panTo(new L.LatLng(data[0].lat, data[1].lon));
+ map.panTo(new L.LatLng(data[0].lat, data[0].lon));
279
})
280
}
281
0 commit comments