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
Instead of processing the terrain tiles to remove the oceans, wouldn't it make more since to handle that zeroing out of the ocean in software? Couldn't we just set height-tile MIN_VALID_M to 0, or -1500 (to account for the Dead Sea), and zero out any height less than the MIN_VALID_M?
Actually! @msbarry, the library already supports this through filters. At least for contours!
filter: [">", ["get", "ele"], 0],.
Here is ele filter at 2200 ft.
Unfortunately, this same approach doesn't work for hillshade type (ele filtered at 2200 as well in the above image). It looks like the maplibre hillshade code doesn't accommodate filters.
Instead of processing the terrain tiles to remove the oceans, wouldn't it make more since to handle that zeroing out of the ocean in software? Couldn't we just set height-tile MIN_VALID_M to 0, or -1500 (to account for the Dead Sea), and zero out any height less than the MIN_VALID_M?
maplibre-contour/src/height-tile.ts
Line 3 in 8962d7c
Additionally, the values could be passed as options, so that this library could work on other planets. 😂
The text was updated successfully, but these errors were encountered: