Hi, we host a VectorTileServer (tile format is pbf) with this an URL like this:
The code to load the server looks like this. The load is successful but the map remains gray. Loading the map in the browser works fine.
val webTileLayer = WebTiledLayer.create("url_from_above")
webTileLayer.load()
.onSuccess {
Timber.d("WmsLayer loaded with status ${webTileLayer.loadStatus.value}")
webTileLayer.let {
Timber.d("There are ${webTileLayer.subDomains.size} subdomains in the tile layer")
mapView.map = ArcGISMap(Basemap(webTileLayer))
}
}
Do you have any idea why loading the map does not work?
Solved! Go to Solution.
You should use ArcGISVectorTiledLayer to load the vector tile service, then use the layer in your Basemap, and give it a try.
You should use ArcGISVectorTiledLayer to load the vector tile service, then use the layer in your Basemap, and give it a try.
Thank you @ChanganShi1, using ArcGISVectorTiledLayer helped.
private val webTiledLayer = ArcGISVectorTiledLayer(VECTOR_TILE_SERVER)