forked from gravitystorm/openstreetmap-carto
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This merges code for low-zoom road definitions into the corresponding high-zoom road definitions. Data on z<10 now comes from osm_planet_roads, data on z>=10 comes from osm_planet_line. Chosen is for zoom level 10 as cut-off, because residential is rendered from z10 and is not included in osm_planet_roads, so on z>=10 osm_planet_line needs to be queried anyway. Advantages: * This separates the zoomlevel cut-off for querying from the roads vs line table from the zoomlevel cut-off for the lowzoom rendering style. * This brings related code (i.e. code per feature) closer together in the file, which should make the code more easy to modify. This is mainly a code cleanup, but it causes some small changes in rendering: * Take into account layering of roads on z10 and z11. * Fix the loss of layering problem of railway tunnels on z12 (resolves gravitystorm#400). * Fix bug that prevented tunnel rendering style for railway on z11/12, and add tunnel style rendering for spur/siding/yard for z<12. * Give railways on z<12 a round line-join. This is an improvement of gravitystorm#555.
- Loading branch information
1 parent
d21b052
commit 6513fc3
Showing
3 changed files
with
88 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters