@open-pioneer/coordinate-viewer
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

@open-pioneer/coordinate-viewer

This package provides a UI component to show the current coordinates at the users current mouse position.

Usage

To integrate the coordinate viewer in your app, insert the following snippet and reference a map ID:

<CoordinateViewer mapId="map_id" />

To define the number of decimal places shown, set the optional precision property:

<CoordinateViewer mapId="map_id" precision={2} />

To show the coordinates in a specific projection, set the optional displayProjectionCode property:

<CoordinateViewer mapId="map_id" displayProjectionCode="EPSG:4326" />

License

Apache-2.0 (see LICENSE file)

Readme

Keywords

Package Sidebar

Install

npm i @open-pioneer/coordinate-viewer

Weekly Downloads

24

Version

0.5.1

License

Apache-2.0

Unpacked Size

25.9 kB

Total Files

12

Last publish

Collaborators

  • open_pioneer
  • antoniave_conterra
  • jessebluemr
  • mbeckem_conterra