leaflet.browser.print
leaflet.browser.print copied to clipboard
Esri Vector Tile Printing?
This is an excellent Leaflet extension that I've used for a number of projects, and now I'm working with a hosted vector tile layer on AGOL and I'm curious if it's possible to use such a service as the printLayer, and if not, would it even be possible, and how heavy a lift would it be?
As a ham-fisted attempt I simply tried slipping the vectorTileLayer in as the printLayer:
L.control.browserPrint({
position : "topleft",
printLayer: L.esri.Vector.vectorTileLayer('https://tiles.arcgis.com/tiles/OSbOBWdLkmvu5I9F/arcgis/rest/services/VTP27/VectorTileServer/tiles/{z}/{x}/{y}.pbf')...
Unsurprisingly this returns "Unknown layer, cannot clone this layer. Leaflet version: 1.9.4", and to be honest I'm not even certain if the vector tile service even supports the "/tiles/{z}/{x}/{y}" operations.
It would be great if this were possible or could be added, but I can also see where this may not be possible given the format of data being returned from such a service