Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect layering of breakwater at z=18 #4518

Closed
AndrewKvalheim opened this issue Feb 27, 2022 · 1 comment · Fixed by #4703
Closed

Incorrect layering of breakwater at z=18 #4518

AndrewKvalheim opened this issue Feb 27, 2022 · 1 comment · Fixed by #4703
Labels

Comments

@AndrewKvalheim
Copy link

Expected behavior

man_made=pier+layer=1 (way 60786491) renders in front of man_made=breakwater (way 942959325).

Actual behavior

At zoom 18, the breakwater renders in front of the pier.

Screenshots illustrating the problem

Correct at zoom 19:

z19

Incorrect at zoom 18:

z18

Correct at zoom 17:

z17

@imagico
Copy link
Collaborator

imagico commented Feb 27, 2022

Thanks for the report.

This is not a zoom level problem and has nothing to do with the layer tag. It is because the layers piers-poly and piers-line lack explicit ordering so the drawing order is undefined and varies arbitrarily between tiles and zoom levels.

- id: piers-poly
geometry: polygon
<<: *extents
Datasource:
<<: *osm2pgsql
table: |-
(SELECT
way, man_made
FROM planet_osm_polygon
WHERE man_made IN ('pier', 'breakwater', 'groyne')
) AS piers_poly
properties:
minzoom: 12
- id: piers-line
geometry: linestring
<<: *extents
Datasource:
<<: *osm2pgsql
table: |-
(SELECT
way, man_made
FROM planet_osm_line
WHERE man_made IN ('pier', 'breakwater', 'groyne')
) AS piers_line
properties:
minzoom: 12

Related to #330 by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants