MunichWays / radlnavi

Codebase for radlnavi.de
MIT License
3 stars 0 forks source link

Route immer blau umrandet anzeigen #9

Open thomas-munichways opened 2 weeks ago

thomas-munichways commented 2 weeks ago

Problem: schwarze Ränder sehen etwas nach "sehr stressig" aus und kann den Nutzer verwirren bzw. erschrecken.

Ist: Die berechnete Route wird manchmal komplett in blau gezeigt, manchmal mit den MunichWays Farben plus blaue Rändern / Seitenlinien, manchmal mit schwarzen Seitenlinien.

Klick Story:

thomas-munichways commented 2 weeks ago

Ist: erste Zeile color="black":

<Polyline key={`route-${hightlightLit !== null || hightlightSurface !== null}`} weight={hightlightLit !== null || hightlightSurface !== null ? 3 : 8} positions={coords} color="black"></Polyline>
{bicycleClassesPaths == null ? <Polyline dashArray="2 4" color={RADLNAVI_BLUE} weight={2} positions={coords}></Polyline> : hightlightLit || hightlightSurface ? [] : [...bicycleClassesPaths.entries()]

Soll: beide Zeilen color={RADLNAVI_BLUE} ?

<Polyline key={`route-${hightlightLit !== null || hightlightSurface !== null}`} weight={hightlightLit !== null || hightlightSurface !== null ? 3 : 8} positions={coords} color={RADLNAVI_BLUE}></Polyline>
{bicycleClassesPaths == null ? <Polyline dashArray="2 4" color={RADLNAVI_BLUE} weight={2} positions={coords}></Polyline> : hightlightLit || hightlightSurface ? [] : [...bicycleClassesPaths.entries()]

hier auch für bereits zurückgelegte Strecken? color={RADLNAVI_BLUE} Ist: <Polyline key={${key}-${i}-backdrop} color="black" weight={8} positions={ Soll: < Polyline key={${key}-${i}-backdrop} color={RADLNAVI_BLUE} weight={8} positions={