Skip to content

PMTiles in Leaflet: Rendering labels on top of another Leaflet feature #10

Answered by bdon
hkuril asked this question in Q&A
Discussion options

You must be logged in to vote

leafletLayer can also take a PMTiles object instead of a URL. that means a single data instance will be shared across multiple leaflet layers. Right now this doesn't work ideally because it will combine header/directory requests across those two layers, but will not share the tile data requests. This could be a nice enhancement.

Adding that enhancement would save on network traffic, but still you'd have duplicate canvas layer elements. Do you think that would make this approach efficient enough for your use case?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@bdon
Comment options

bdon Dec 6, 2023
Maintainer

@hkuril
Comment options

@bdon
Comment options

bdon Dec 15, 2023
Maintainer

@hkuril
Comment options

@bdon
Comment options

bdon Dec 19, 2023
Maintainer

Answer selected by hkuril
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants