Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work in mobile #344

Open
elsasantos opened this issue Oct 24, 2023 · 0 comments
Open

Don't work in mobile #344

elsasantos opened this issue Oct 24, 2023 · 0 comments

Comments

@elsasantos
Copy link

elsasantos commented Oct 24, 2023

Hi,
I implemented this plugin with this options in my ionic project:

import Geocoder from 'leaflet-control-geocoder';

let providerNomitatim = new Geocoder.nominatim({
  geocodingQueryParams: {
    viewbox: this._box,
    bounded: '1'
  }
});

this.geoControl = new Geocoder({
  geocoder: providerNomitatim,
  showUniqueResult: false,
  showResultIcons: false,
  collapsed: false,
  expand: 'hover',
  query: '',
  queryMinLength: 1,
  suggestMinLength: 3,
  suggestTimeout: 250,
  position: 'topleft',
  placeholder: this._labelPlaceholder,
});

When I write in the input area it doesn't show suggestions, only when I press “Enter” but in the mobile the "Enter" key does nothing. What am I doing wrong?

In the documentation it says the option suggestMinLength is the "Minimum number characters before suggest functionality is used (if available from geocoder)". What does this mean (if available from geocoder)? How can apply this?

Thank you!

@elsasantos elsasantos changed the title Don't show results after 3 inputs Don't work in mobile Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant