Giter Site home page Giter Site logo

tomickigrzegorz / leaflet.autocomplete Goto Github PK

View Code? Open in Web Editor NEW
53.0 2.0 10.0 4.83 MB

:maple_leaf: Leaflet.Autocomplete search outside map, no dependence. Use of different formats, remote api or static files.

Home Page: https://tomickigrzegorz.github.io/Leaflet.Autocomplete/

License: MIT License

outsite-map autocomplete geojson geocode geojson-format leaflet

leaflet.autocomplete's Issues

Violating Nominatim Usage Policy

According to https://operations.osmfoundation.org/policies/nominatim/ :

Unacceptable Use
The following uses are strictly forbidden and will get you banned:

  • Auto-complete search This is not yet supported by Nominatim and you must not implement such a service on the client side using the API.
    ...

It seems to me that your repo violates Nominatim usage policy by providing client-side autocomplete using Nominatim API. I would propose using other public APIs like https://photon.komoot.io instead in order to stick with fair use.

How to inicialize clearButton (x) when the field comes with default value

Hi Tomas,

now, the clearButton is displayed only when the value is supplied for the input over autocomplete. What is great for post add.

On post edit, the field comes already with the value and there is no clearButton. Can you add detection if the autocomplete field has default value so clearButton is displayed automatically?

An issue that's not really an issue...

Hello, and thank you for creating such a lovely tool! I am wondering if you might be willing to share an unminified version of autosuggest.js just to help with debugging? I have been experiencing some oddness with returns that I would like to get to the bottom of. All the best.

There is a typo "maxZomm"

First of all, great job!

There is a typo in the code. Search for maxZomm. Should be maxZoom, obviously.

Not reset settings

No settings reset after clicking the 'x' button. Search results are also not closed.

Remove address list

Hi,

how remove address list, when I clear input field by keypress backspace?

How to hide 'not matched item' in the result list.

Thank you for providing the excellent search functionality. I have a question that requires your assistance.
Please visit the webpage http://route.capas.oome.net/sharecode/Leaflet.Autocomplete-master/docs/index.html. I have used the code from this repository and run the docs/index.html file, with only modifications script.js file onlines 8-14 of the , changing the data source from api to the built-in search.json file.
When I search for "gmina," all 10 results are listed in the list, with 3 of them not matched "gmina".
Since my own geojson file contains thousands of data entries, I do not wish to display all the items. Instead, I would like to display only the entries that match the search keyword, as shown in the image.
Snipaste_2024-04-17_21-23-39
How should I modify the JavaScript code ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.