diff --git a/README.md b/README.md index 9de4fc3..595afa5 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/documentation/map.md b/documentation/map.md index a3ac8fd..f35ff18 100644 --- a/documentation/map.md +++ b/documentation/map.md @@ -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()