Skip to content

Commit

Permalink
demo: fix geocoder.reverse usage
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Dec 17, 2024
1 parent 9bfaa0f commit 503e6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
}).addTo(map);

map.on('click', function(e) {
geocoder.reverse(e.latlng, map.options.crs.scale(map.getZoom()), function(results) {
geocoder.reverse(e.latlng, map.options.crs.scale(map.getZoom())).then(function(results) {
var r = results[0];
if (r) {
if (marker) {
Expand Down

0 comments on commit 503e6fc

Please sign in to comment.