@open-pioneer/scale-setter
v0.7.0
Published
This package provides a UI component to change the scale of the map.
Downloads
74
Keywords
Readme
@open-pioneer/scale-setter
This package provides a UI component to change the scale of the map.
Usage
To integrate the scale-setter into your app, insert the following snippet and reference a map ID:
<ScaleSetter mapId="map_id" />
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
mapId="map_id"
scales={[
336, 671, 1343, 2685, 5371, 10741, 21478, 42941, 85819, 171384, 341757, 679450, 1342389,
2651369
]}
/>
License
Apache-2.0 (see LICENSE
file)