Skip to main content

I am trying to connect to an Esri vector Basemap through the REST Endpoint but am having difficulty setting up my workspace. Has anyone had any success with this as of yet?

 

I was able to do this with a JSON filter on the older raster basemaps, but cannot do the same for the vectors basemaps. I am ultimately trying to pull imagery from a specified extent.

 

Here is the URL of the endpoint in question:

https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer?f=json

 

Any assistance with this would be greatly appreciated!

I've done something similar for tiled mapservices, I cant find the exact workbench currently, but you need to make a call to get the appropriate tile in the format

 

https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/tile/z/y/x

 

Where z is the zoom level and y and x are the tile number for that zoom level.

 

The tricky part comes with figuring out exactly what your tile number will be. From the link you posted we have all the information we need.

 

Firstly, we know the tile size (512x512), and combining this with the desired zoom level, we can figure out the geographical size of the tile at that specific zoom level.

 

Now we need to use the full extent of the service and using your known geographic tile size and AOI do some maths to figure out the exact tile(s) that cover your area.

 

This last part is the part I can't remember the exact details of


I've done something similar for tiled mapservices, I cant find the exact workbench currently, but you need to make a call to get the appropriate tile in the format

 

https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/tile/z/y/x

 

Where z is the zoom level and y and x are the tile number for that zoom level.

 

The tricky part comes with figuring out exactly what your tile number will be. From the link you posted we have all the information we need.

 

Firstly, we know the tile size (512x512), and combining this with the desired zoom level, we can figure out the geographical size of the tile at that specific zoom level.

 

Now we need to use the full extent of the service and using your known geographic tile size and AOI do some maths to figure out the exact tile(s) that cover your area.

 

This last part is the part I can't remember the exact details of

Found it - find attached

 


I've done something similar for tiled mapservices, I cant find the exact workbench currently, but you need to make a call to get the appropriate tile in the format

 

https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/tile/z/y/x

 

Where z is the zoom level and y and x are the tile number for that zoom level.

 

The tricky part comes with figuring out exactly what your tile number will be. From the link you posted we have all the information we need.

 

Firstly, we know the tile size (512x512), and combining this with the desired zoom level, we can figure out the geographical size of the tile at that specific zoom level.

 

Now we need to use the full extent of the service and using your known geographic tile size and AOI do some maths to figure out the exact tile(s) that cover your area.

 

This last part is the part I can't remember the exact details of

I think also the WebMapTiler also has the same level, x and y structure, however, it can be a little different. And it's annoying because you need to covert your bounds to a raster, tile it up and then get the result. Performing the actual calculation in the workspace like Hamish has done is really nice because you can at leaset see what is happening.


Reply