Skip to content

Conversation

@arichnad
Copy link
Contributor

  1. zoom 4, 5, and 7 road values were incorrectly being used.

  2. openmaptiles shows admin 3 boundaries much higher.

  3. unpaved and paved values are parsed from surface list

  4. remove duplicate variable definitions.

  5. SetMinZoomByAreaWithLimit allows up to minzoom 4

  6. fix whitespace and a few variable issues.

…hema

1.  zoom 4, 5, and 7 road values were incorrectly being used.

2.  openmaptiles shows admin 3 boundaries much higher.

3.  unpaved and paved values are parsed from surface list

4.  remove duplicate variable definitions.

5.  SetMinZoomByAreaWithLimit allows up to minzoom 4

6.  fix whitespace and a few variable issues.
@arichnad
Copy link
Contributor Author

arichnad commented Aug 8, 2025

  1. fixes a bug with setting an empty name: a set "empty" name will override the ref if one is set.

Comment on lines +842 to +847
if minzoom <= 1 and area>ZRES0^2 then MinZoom(1)
elseif minzoom <= 2 and area>ZRES1^2 then MinZoom(2)
elseif minzoom <= 3 and area>ZRES2^2 then MinZoom(3)
elseif minzoom <= 4 and area>ZRES3^2 then MinZoom(4)
elseif minzoom <= 5 and area>ZRES4^2 then MinZoom(5)
elseif minzoom <= 6 and area>ZRES5^2 then MinZoom(6)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. SetMinZoomByAreaWithLimit allows up to minzoom 4

I'm curious why does this only allow up to minzoom 4?
I'm trying to show lakes on all zoom levels. With this change they do now show up on zoom level 4 and 5, but not earlier.
E.g. https://www.openstreetmap.org/relation/945096

My config:

"water":             { "minzoom": 0,  "maxzoom": 14, "simplify_below": 12, "simplify_level": 0.0003, "simplify_ratio": 2}

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.

2 participants