Skip to content

Missing documentation on how to use suggest/Autocomplete #370

Description

@digitaldonkey

It took me a while to figure out how to use autocomplete in nominatim.

If I did it in a bad way, please correct me. Maybe there is just some documentation missing.

This is how I managed to run the autocomplete functionality:

 const geocoder = L.Control.Geocoder.nominatim()

// ENABLE SUGGESTIONS
geocoder.suggest = geocoder.geocode;

new L.Control.Geocoder({
        collapsed: false, // Wide Search input
        placeholder: 'Search for location',
        showUniqueResult: false,
        defaultMarkGeocode: false,
        geocoder
})
.addTo(map);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions