Coordinates

Shows pointer coordinates in the chosen format.

type: coordinatesstandalonestable

What it does

A readout of the position under the pointer.

The important choice is the format. 4.895, 52.372, 52°22'19"N 4°53'42"E, and Dutch RD New metres can all describe the same place. Use the format your readers expect.

So the format is a choice, not a constant:

Using it

Move the pointer. On a phone or tablet, the readout shows the center of the map.

In your own map

Add coordinates with a position, and set defaultFormat to whichever notation your readers use:

"coordinates": { "type": "coordinates", "position": "bottom-left", "defaultFormat": "crs:28992" }

Without defaultFormat, the readout starts in decimal degrees.

Extending it

A crs: format needs a proj4 definition before it can convert. Cataloged projections are registered already. Register other projections before using them here.

Config typecoordinates
Element<webmapx-coordinates-tool>
Placementstandalone
Sourcesrc/components/webmapx-coordinates-tool.ts
Teststests/tool-registration.test.ts
Relatedscale, info, measure