ContourIntervals

The zoom-banded contour interval table, ported verbatim from the sibling iOS app's ContourGenerator.swift:38-58 (ContourIntervals.intervals(forZoom:metric:)). indexMeters is always 5 × minorMeters in every band; every 5th minor line is an index line.

Functions

Link copied to clipboard
fun forZoom(zoom: Int, metric: Boolean): ContourIntervalBand
Link copied to clipboard
fun isIndexLevel(elevationMeters: Float, zoom: Int, metric: Boolean): Boolean

Whether elevationMeters (assumed to be one of levelsForZoom's own outputs) is an index line, not minor.

Link copied to clipboard
fun levelsForZoom(zoom: Int, metric: Boolean, maxElevationMeters: Float): List<Float>

Every minor-interval level up to maxElevationMeters, for ContourGenerator.generate's levels param.