forked from Leaflet/Leaflet
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Continuing discussion here, from Leaflet#4420.
We're planning to create a L.TileLayer.Websocket class, that requests tiles over websockets, instead of http requests. I realise this is a bit of an undertaking, so I'm just checking in to perhaps get some advice and heads-up on possible caveats. (Also, if anyone has done any work in this direction already, let me know, can't seem to find anything anywhere.)
Rationale for the plugin is that we need to request small tiles at a much higher rate than what browser http request limits permit (doing animation with tiles at >10fps). We run our own tileserver, which will accept websocket requests for tiles.
Outline
- use
v1.0.0-beta.2 - extend
L.TileLayertoL.TileLayer.Websockets - fallback on
L.TileLayerif websockets are unsupported (caniuse/websockets). - replace
tile.src(code) with websocket request
Any advice, input or encouragement is greatly appreciated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels