Skip to content

Commit

Permalink
Add config resource to control auto center on marker
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Chagas <[email protected]>
  • Loading branch information
rtchagas committed Nov 25, 2019
1 parent b0d34c5 commit 1f3da1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class PlacePickerActivity : AppCompatActivity(), PingKoinComponent,
val place = marker.tag as Place
showConfirmPlacePopup(place)

return true
return !resources.getBoolean(R.bool.auto_center_on_marker_click)
}

override fun onPlaceConfirmed(place: Place) {
Expand Down
4 changes: 4 additions & 0 deletions library/src/main/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
where to bias the autocomplete search results -->
<integer name="autocomplete_search_bias_radius">5000</integer>

<!-- If true, the map will automatically center (pan) to
the selected marker -->
<bool name="auto_center_on_marker_click">false</bool>

<!-- Do not change this one -->
<bool name="show_card_search">true</bool>

Expand Down

0 comments on commit 1f3da1d

Please sign in to comment.