Select to view content in your preferred language

Vector Tiles from XYZ URL?

1809
2
09-06-2023 01:32 PM
Labels (1)
jcarlson
MVP Esteemed Contributor

I have a vector tile service I would love to add to my maps. The pbf files are hosted in a web server as static PBF files, not as an Esri vector tile package; is there any way to bring this into the Map Viewer in AGOL?

I can add imagery tiles with a URL like example.com/vectortiles/{z}/{x}/{y}. Following this same pattern with a vector tile enpoint seems to work, but there's no way to tell AGOL how to parse the response, the pbf just sits there.

On the off chance this doesn't already exist, I'll be posting an idea for it as well.

- Josh Carlson
Kendall County GIS
2 Replies
MiguelParedes
Esri Contributor

Greetings @jcarlson 

I have not found a way of adding a Tile service to Content.  When I add a URL such as https://a.tile.openstreetmap.org/{z}/{x}/{y}.png I do not get an option for Tile Layers.  However, if I add the same service to either Map Viewer or Map Viewer Classic, I do get the option:
7eb3ppXTcQ.jpg

That was for MV.  MVC is a bit different:
jF7D8Olihb.jpg

Should work with output type .pbf too.

Hope that helps.

Miguel
0 Kudos
jcarlson
MVP Esteemed Contributor

It does work with a PBF, but the map viewer doesn't know what to do with the information, since I can't tell it where the style JSON is located.

- Josh Carlson
Kendall County GIS
0 Kudos