Skip to content

Fix: Elevation contours should not be drawn above roads - #1644

Closed
Sublimis wants to merge 1 commit into
mapsforge:masterfrom
Sublimis:motorider-contours-1
Closed

Sublimis wants to merge 1 commit into
mapsforge:masterfrom
Sublimis:motorider-contours-1

Conversation

@Sublimis

@Sublimis Sublimis commented Jan 27, 2025 •

Copy link
Copy Markdown
Contributor

Fix: Elevation contours should not be drawn above roads and everything in Motorider themes (only above hill shading)

#1641 as an example

…g in Motorider themes (only above hill shading)
@devemux86

Copy link
Copy Markdown
Collaborator

@Sublimis Where OpenAndroMaps Elevate theme shows the contours?

cc @MotoUKRider

@MotoUKRider

Copy link
Copy Markdown

@Sublimis @devemux86 Interesting! I have looked at the Switzerland map (a good one for all kinds of land/mountain "stuff"). I moved the contours directly under the "hillshading" section and that fixed the immediate concern, but there are other areas, like "residential" which they draw over.

I guess we need to arrange these in a specific order, so define the "green" land features - all where contours lines are useful, and then define residential/commercial area fills, roads etc.

XML Tetris, what fun!

@devemux86

Copy link
Copy Markdown
Collaborator

@MotoUKRider @Sublimis

OpenAndroMaps Elevate seems to draw the contours below the roads but above all other polygons.
So we should probably use a similar rendering.

@MotoUKRider

Copy link
Copy Markdown

Some progress - I have moved some of the rules, creating "landuse, human" and "landuse, natural" sections to separate residential/commercial from forest/grass etc. The lines are behaving, but the text isn't...

cruiser-contour-lines

I'm not sure why this is as the path-text is in the same section as the contour-lines and the residential area-fill is after that. More coffee, I think.

@devemux86

Copy link
Copy Markdown
Collaborator

@MotoUKRider Labels cannot be hidden, they are rendered in a separate layer on top.

It's better to not complicate things. 🙂
Just check how Elevate theme works in all apps.

Cruiser

@MotoUKRider

Copy link
Copy Markdown

@devemux86 I posted the above before seeing your e-mail. The edits I've made are on the main theme thread.

@devemux86

Copy link
Copy Markdown
Collaborator

@MotoUKRider @Sublimis

I merged the changes in #1645.

@devemux86 devemux86 closed this Jan 28, 2025
@devemux86

Copy link
Copy Markdown
Collaborator

@Sublimis @MotoUKRider Thank you both for the improvements!

@Sublimis

Sublimis commented Jan 28, 2025 •

Copy link
Copy Markdown
Contributor Author

Elevate is doing similar, except they seem to draw contours above tunnels only 🙂
So the order is this:

<hillshading/>
...
<!-- tunnels -->
...
<!-- contour lines -->
...

(and yes, above background polygons too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants