You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, filing this here as I didn't want to disrupt the spec discussion:
The raster topographic maps provided by the NZ government changes the color of contour lines to blue when inside a glacier.
I find this makes it much easier to distinguish the feature than what opentopomap and other vector tiles generally do (which is put a white polygon with a blue outline under the contours:
(it's hard to see, but this map actually has a bunch of glaciers marked)
I find this makes it much easier to quickly orient yourself (by the shape/amount of glacier cover) when zoomed out.
I was thinking of extending maplibre-contour to optionally take a polygon which it should only render contours within and then have two separate sources:
Does the normal maplibre contour thing
Downloads the Mapbox Vector Tile & DEM for the current point extracts the glacier polygons and clips the contour lines to be inside the glacier polygons.
Do you think upstream would be interested in this? Alternatively, I could see it working if there was some maplibre-gl expression for inside which takes another polygon on the tile, but I'm a bit of a maplibre noob, so dunno if they'd be interested.
The text was updated successfully, but these errors were encountered:
You definitely could do something just for contours in the plugin or maplibre code when this gets merged, but this problem isn't unique to contour lines. What we really want is the ability to control how maplibre blends certain layers together so we could customize it to make glacier polygons change the color of contour lines they are above, and also so that regular contour lines show up consistently above different color backgrounds.
The contour plugin just generates lines, not polygons. Isoband polygons might be a useful but are a bit more complex to generate.
For this particular use-case the re-colored elevation seems like it could be represented as raster so you could either convert the raster-dem images to color scale prior to serving, or register a hook using addProtocol that fetches the DEM, recolors it according to your scale, and re-encodes it as PNG client-side.
Sorry, filing this here as I didn't want to disrupt the spec discussion:
The raster topographic maps provided by the NZ government changes the color of contour lines to blue when inside a glacier.
I find this makes it much easier to distinguish the feature than what opentopomap and other vector tiles generally do (which is put a white polygon with a blue outline under the contours:
(it's hard to see, but this map actually has a bunch of glaciers marked)
I find this makes it much easier to quickly orient yourself (by the shape/amount of glacier cover) when zoomed out.
I was thinking of extending
maplibre-contour
to optionally take a polygon which it should only render contours within and then have two separate sources:Do you think upstream would be interested in this? Alternatively, I could see it working if there was some maplibre-gl expression for
inside
which takes another polygon on the tile, but I'm a bit of a maplibre noob, so dunno if they'd be interested.The text was updated successfully, but these errors were encountered: