tilery / OpenRiverboatMap

CartoCSS style for rendering a riverboat oriented map on top of OSM data
Do What The F*ck You Want To Public License
28 stars 6 forks source link

Render all waterways, even if they have no name #51

Closed pyrog closed 11 years ago

pyrog commented 11 years ago

In this example, the waterway = stream 47325306 is not rendered.

capture decran 2013-07-23 a 19 31 02 capture decran 2013-07-23 a 19 30 39

See : openriverboatmap.mml line 901

[…] WHERE waterway IN ('canal', 'river', 'stream') AND name IS NOT NULL

yohanboniface commented 11 years ago

This line is for waterway_label, hence the name IS NOT NULL.

pyrog commented 11 years ago

Ok, i read it to quickly :-D But the issue is still there ;-)

Should i rename the issue "Render all waterways even streams" ?

pyrog commented 11 years ago

Suggestion of correction ?

openriverboatmap.mml line 178

WHERE waterway IN ('river', 'canal'))

Add stream

waterways.mss line 43 and line 46

waterway_network_high[zoom>=13] {

line-color: @water; [navigable='yes'] { line-color: @navigable; } [type='canal'] { line-width: 6; } [type='river'] { line-width: 4; } [zoom>=15] { [type='canal'] { line-width: 8; } [type='river'] { line-width: 6; } } }

Add default line-width or specific line-width for type='stream'