appbaseio / appbaseio/reactivesearch

Feature Request: Make the AutoLocation property configurable

Offen
#299 0 Kommentare 1 Reaktion 1 zugewiesene Person Beansprucht von @dhruvdutt Auf GitHub ansehen
enhancement maps :world_map: web :spider_web:
Vorherrschende Sprache
JavaScript
Sterne
4.9k
Forks
478
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Issue Type:**
enhancement

**Platform:**
Web

**Description:**
Currently, when `Autolocation` is enabled on map components, it appears to autocomplete the location to the most specific location it can find. For example, when I make use of a map component, autolocate returns a street address near my current location. It would be nice if the level of detail for the autolocation was configurable so that you could choose the level of detail and it would attempt to locate to that level but no further. For example, have autolocation populate the search box with a city name (and associated lat/long) instead of a street address. I imagine an enumeration of values based on Google Map's options such as:

- Street Address
- Postal Code
- Locality (typically city)
- Administrative Area Level 1 (typically state/provence)
- Country

Additionally, it would be nice if the displayed location string could be easily formatted before being displayed to the UI. Perhaps an optional format function that takes in an object with all the location data (Street Address, Locality, Administrative Areas, Country, etc) and returns a String. This would add lots of flexibility. For example, a developer could decide they want to remove the country name for local locations, but keep the country name for foreign locations.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.