Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Brabenetz committed Aug 3, 2021
1 parent 8e17495 commit 1925803
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ apply plugin: 'com.huawei.agconnect'
Add the following dependencies as required to your app. GMS, Firebase and HMS dependencies are included, so they do not need to be declared in your app.
```gradle
dependencies {
def choicesdk_version = '0.2.0'
def choicesdk_version = '0.3.0'
implementation "at.bluesource.choicesdk:choicesdk-analytics:$choicesdk_version"
implementation "at.bluesource.choicesdk:choicesdk-location:$choicesdk_version"
implementation "at.bluesource.choicesdk:choicesdk-maps:$choicesdk_version"
Expand Down
9 changes: 9 additions & 0 deletions documentation/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ map.addPolyline(
)
```

Adding a tile provider:
```kotlin
val tileProvider = TileProvider.create { x, y, zoom ->
// TODO return a ChoiceSDK tile via Tile.getFactory().create(...)
}
val tileOverlayOptions = TileOverlayOptions.create().tileProvider(tileProvider)
map.addTileOverlay(tileOverlayOptions)
```

The Google or Huawei map object can be retrieved for use-cases which ChoiceSDK does not provide, e.g. clustering. Please note that you need to add the corresponding GMS/HMS dependencies in your `build.gradle` file.
```kotlin
val googleMap: com.google.android.gms.maps.GoogleMap? = map.getGoogleMap()
Expand Down

0 comments on commit 1925803

Please sign in to comment.