Adding request headers for VectorTileLayer?
See original GitHub issueVectorTileLayer
would benefit from a headers
parameter to be passed to the HTTP requests made in order to pass some kind of tokens for example. I’m happy to work on this if somebody can help point me the right way. Maybe a plugin like https://github.com/ticinum-aerospace/leaflet-wms-header would be needed?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5 (2 by maintainers)
Top Results From Across the Web
VectorTileLayer | API Reference | ArcGIS Maps SDK for ...
Documentation site for ArcGIS Maps SDK for JavaScript on ArcGIS Developers.
Read more >How to add custom Authorization Header for tile requests in ...
The API that I retrieve the vector tiles requires an authorization header to be passed. In Mapbox GL js this can be resolved...
Read more >VectorTileLayer | API Reference | ArcGIS API for JavaScript 4.4
A VectorTileLayer accesses cached tiles of data and renders it in vector format. It is similar to a WebTileLayer in the context of...
Read more >Add custom headers to layer requests - Esri Community
Is it possible to add custom HTTP headers to every layer request (p.e. WMTSLayer)? I'd like to add the referer header because otherwise...
Read more >What's new in Version 3.18 | Guide | ArcGIS API for JavaScript 3.29
showColumnHeaderTooltips - when set to true, displays tooltips for column headers. Useful to set this property to true when you have long column...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Indeed, it would be a matter of exposing the possibility to configure the
fetchOptions
parameter of Leaflet.There’s a bit of discussion about incorporating this with leaflet here: https://github.com/Leaflet/Leaflet/issues/2091
Also a leaflet plugin (near the bottom of that thread) that can add headers: https://github.com/jaq316/leaflet-header
Hopefully this can make it easier to integrate into ipyleaflet