Select to view content in your preferred language

Could a subclass of ImageTiledLayer return a vector tile?

1608
8
06-07-2017 04:22 PM
NathanMellor
Regular Contributor

The SDK may be expecting an image here. 

I wonder about this for cases we might want to use vector tiles that are not from ArcGIS. 

0 Kudos
8 Replies
dotMorten_esri
Esri Notable Contributor

No vectors are not supported. these must be images 

0 Kudos
NathanMellor
Regular Contributor

I would like to request that a similar provision be made for vector tiles as is made for raster tiles. Consider this a feature request. 

0 Kudos
dotMorten_esri
Esri Notable Contributor

What types of vector tile formats might that be? 

0 Kudos
NathanMellor
Regular Contributor

I believe they would be PBF, just like you use internally. 

Subclassing ImageTiledLayer would allow you to display third party tiled servers for images, or formats such as MBTiles that are local.

Based on what you told me above, I can't do this for vector tiles.

If my vector tile provider doesn't use ArcGIS Server, I would have to ask them for a full copy of their tiles instead of streaming it from them. 

0 Kudos
dotMorten_esri
Esri Notable Contributor

PBF is just a transfer format, not the entire spec. We use PBF for transferring the vector tiles using the vector tile layer, so in that sense it's already supported with no need to subclass - you just have to package the data in the way expected and then transfer via PBF.

0 Kudos
NathanMellor
Regular Contributor

I take that to mean "all PBF isn't equal". 

There are reasons I am asking. 

For example, if I wanted to license content from opentilemaps.com . . .

I couldn't do it online, because they don't use an Arcgis server to host as far as I know.

I couldn't do it offline, because they don't provide it in .vtpk format.   

We question whether we are a large enough business to recreate a worldwide map like openmaptiles.com. 

So we would need to find a tile vendor that is a loyal ArcGIS user. 

OR

Figure out the cost of hiring people and servers to recreate a tiled map from OpenStreetMap data. 

What are the ArcGIS Vector Basemaps missing? Contours, for one thing. Hiking and walking trails, for another. These two things are very important to my user base. 

0 Kudos
chrishibler1
Emerging Contributor

My organization has the same need. OSM data is perfect for us, but trying to consume it from the .NET SDK is proving challenging. Support for consuming the vector, pbf tiles they package in mbtiles format would be very useful.

0 Kudos
dotMorten_esri
Esri Notable Contributor

Open Street Map is now available as a vector base map: New OpenStreetMap Vector Basemap Available 

var layer = new ArcGISVectorTiledLayer(new Uri("https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer"))