question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding request headers for VectorTileLayer?

See original GitHub issue

VectorTileLayer 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:open
  • Created 3 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ragazzojpcommented, Apr 28, 2021

Indeed, it would be a matter of exposing the possibility to configure the fetchOptions parameter of Leaflet.

0reactions
bkanukacommented, Jun 14, 2021

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found