Line 50 of canvasGl.js I processes the OSM ( XML from OpenStreetMaps ) into GeoJSON, and store in a geo variable.
Take a look at lines 61-602 and rework that function into a web worker that uses the geo object data instead of the archaic hardcoded highway, building, otherWay variables.
It's a pretty big task, so take your time, and let me know if you need anything :+1:
Line 50 of
canvasGl.js
I processes the OSM ( XML from OpenStreetMaps ) into GeoJSON, and store in ageo
variable.Take a look at lines 61-602 and rework that function into a web worker that uses the
geo
object data instead of the archaic hardcodedhighway
,building
,otherWay
variables.It's a pretty big task, so take your time, and let me know if you need anything :+1: