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
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.