tangrams / tangram

WebGL map rendering engine for creative cartography
https://tangram.city
MIT License
2.22k stars 290 forks source link

Add support for linear referencing properties and drawing #609

Open nvkelso opened 7 years ago

nvkelso commented 7 years ago

In preparation for OSMLR segments in Valhalla and Tilezen we're going to have single road geometries with multiple OSMLR segment IDs and their relative position along the geometry (and each direction on the line has a different ID?).

Let's start discussing how to model this data and how to render it in Tangram with this issue. (There may be some overlap with transit discussions?)

/cc @zerebubuth for vector tile encoding @meetar with his background in the OpenTraffic prototype map styling

meetar commented 7 years ago

👍 Can we start with some background about how the new scheme will differ from the previous one? Can I infer that there were multiple road geometries, each with a single OSMLR segment ID, and both directions on the line shared an ID? :)

bcamper commented 7 years ago

OSMLR ids are an entirely new type of data here, they don't exist in current tiles at all.

On Thu, Oct 19, 2017 at 3:18 PM, Peter Richardson notifications@github.com wrote:

👍 Can we start with some background about how the new scheme will differ from the previous one? Can I infer that there were multiple road geometries, each with a single OSMLR segment ID, and both directions on the line shared an ID? :)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tangrams/tangram/issues/609#issuecomment-338009639, or mute the thread https://github.com/notifications/unsubscribe-auth/AABBXSIocOUq_OmWUwUFmabMRh63Yaweks5st6B-gaJpZM4P_f6H .

meetar commented 7 years ago

So the "geometries" in this case will be existing Mapzen vector tile geometries created by tilezen/vector-datasource, which will have new ID, position, and directionality attributes – is this closer?

nvkelso commented 7 years ago

At zoom 15 (max_zoom):

At zoom 14 (and 13,12,11,10):

At mid- to low-zooms (7,8,9):

Actual zooms TBD and included here for illustration only.