You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey folks, I have a tile data that has line vector in it. In my mapping operations I usually use linear referencing to cut that line vector into "events" from an interface that could just be a list of objects, with the RouteID, BegMeasure, and EndMeasure. From that list of objects I want to create a vector-tile with those features in it. I want to do this fast, close to the web workers or in them. I already have web-assembly code that takes raw bytes and returns raw bytes pretty efficiently.
The solution I have right now is a bit hacky. Add another map source, use a web service worker to intercept that dummy source tile request go to the original source get that tile data and use the tile data to generate the new tile. This works pretty good actually, the only issue is web service workers are single threaded. So if that tile data generation takes 500ms that is really bad actually, everything blocks. I've tried various methods of setting tile data with no real success.
What are some other ways to edit raw tile data? Does anyone have experience using the web workers in maplibre for anything?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey folks, I have a tile data that has line vector in it. In my mapping operations I usually use linear referencing to cut that line vector into "events" from an interface that could just be a list of objects, with the RouteID, BegMeasure, and EndMeasure. From that list of objects I want to create a vector-tile with those features in it. I want to do this fast, close to the web workers or in them. I already have web-assembly code that takes raw bytes and returns raw bytes pretty efficiently.
The solution I have right now is a bit hacky. Add another map source, use a web service worker to intercept that dummy source tile request go to the original source get that tile data and use the tile data to generate the new tile. This works pretty good actually, the only issue is web service workers are single threaded. So if that tile data generation takes 500ms that is really bad actually, everything blocks. I've tried various methods of setting tile data with no real success.
What are some other ways to edit raw tile data? Does anyone have experience using the web workers in maplibre for anything?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions