StrandedKitty / streets-gl

🗺 OpenStreetMap 3D renderer powered by WebGL2
http://streets.gl
MIT License
632 stars 48 forks source link

lane_markings always shown #24

Closed joshinils closed 1 year ago

joshinils commented 1 year ago

all driveways and all streets seem to have lane_markings, is that the correct default? at least if a width is known, which is too small for two lanes, then don't draw them. or never for driveways and other highway=service?

looks like this also depends on the surface, though almost all residential roads in germany don't have lane markings, even with surface=asphalt

westnordost commented 1 year ago

FYI The following tag exists: lane_markings=*

Depending on how much you want streets-gl to infer and guess, also FYI, StreetComplete assumes the following roads to not have lane markings either (unless lanes > 1):

Though, be warned, inferring / guessing tends to be a can of worms, i.e. you can sink an almost unlimited time into refining such logic.

matkoniecz commented 1 year ago

https://www.openstreetmap.org/way/118301063 https://streets.gl/#50.07755,19.92081,45.00,0.00,157.78

In this case it is reasonable to guess that there is a single lane here, not two lanes for cars (oneway=yes) - currently road renders too wide and eats sidewalk

But I am already amazed by rendering bicycle lane!

screen01

StrandedKitty commented 1 year ago

I've disabled markings for ways with placement=transition and lane_markings=no. Also now roads of types service and living_street have markings disabled by default (can be overridden by lane_markings=yes).

Default number of lanes for one-way roads is now cut in half. So one-way roads without lanes tag now have only one lane.