appbaseio / appbaseio/reactivesearch

Feature Request: Make the AutoLocation property configurable

オープン
#299 コメント 0 件 リアクション 1 件 担当者 1 名 @dhruvdutt が担当を希望しています GitHub で見る
enhancement maps :world_map: web :spider_web:
主要言語
JavaScript
スター
4.9k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

**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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。