leaflet-plugin icon indicating copy to clipboard operation
leaflet-plugin copied to clipboard

Support a minimum query length

Open orangejulius opened this issue 4 years ago • 1 comments

Very short autocomplete queries (one or two characters) are often not particularly helpful. Many autocomplete interfaces support a minimum input length, below which a query won't be sent to the underlying search backend, and instead a message (something like "enter 1 more character to search...") will be displayed.

We should support something similar.

orangejulius avatar May 19 '20 15:05 orangejulius

This is implemented in the code but not configurable: https://github.com/pelias/leaflet-plugin/blob/master/src/core.js#L23

missinglink avatar May 19 '20 17:05 missinglink