Open Pioneer Trails Packages
    Preparing search index...

    Module @open-pioneer/scale-setter - v0.10.0

    @open-pioneer/scale-setter

    This package provides a UI component to change the scale of the map.

    To integrate the scale-setter into your app, insert the following snippet (and reference a map):

    <ScaleSetter
    map={map}
    /> /* instead of passing the map, the `DefaultMapProvider` can alternatively be used */

    To configure custom scales, provide the optional scales prop (a number[]) to the component. By default, scale options are taken from the standard levels by AdV.

    <ScaleSetter
    map={map}
    scales={[
    336, 671, 1343, 2685, 5371, 10741, 21478, 42941, 85819, 171384, 341757, 679450, 1342389,
    2651369
    ]}
    />

    Apache-2.0 (see LICENSE file)

    Interfaces

    ScaleSetterProps

    Variables

    ScaleSetter