ipyleaflet icon indicating copy to clipboard operation
ipyleaflet copied to clipboard

Add fetch_options for VectorTileLayer

Open clydebw opened this issue 2 years ago • 1 comments

Related to this issue, this PR adds fetch_options to VectorTileLayer, allowing credentials to be added to vector tile requests.

For example:

lyr = ipyleaflet.VectorTileLayer(
    url=url,
    fetch_options={
        "credentials": "include"
    }
)

...which would allow cookies to be included in vector tile requests.

I've tested these changes manually, and they seem to work.

clydebw avatar Feb 03 '23 22:02 clydebw

Just realising that this failed a bunch of CI Actions. @martinRenou I don't think I changed anything visually here - is this broken? Is there anything I can do to help fix?

clydebw avatar Apr 16 '23 21:04 clydebw