What it does
Web Mercator inflates area by 1/cos²(latitude). At 60° that is four times. At Greenland's latitudes, Mercator makes an island of two million km² look much larger.
Pick a country's outline and drag it to another latitude. The copied outline keeps its true ground size and is redrawn for its new position, so distortion is visible.
Several outlines can be shown at once, each in its own color.
Using it
- Open the tool and choose the layer to take shapes from. Any polygon layer on the map can be used.
- Pick a feature. A copy of the feature appears, in a color of its own.
- Drag the copy. The outline is recomputed as it moves, so what you see is always its true size at that latitude.
- Clear all removes the copied outlines.
The copies are a transient overlay. The copied outlines are for looking at, not for keeping.
In your own map
Add truearea to a toolbar. True Area needs a polygon layer on the map to take shapes from, and says so plainly when there is none.
True Area pairs naturally with the projection tool: drag a country south to see the distortion, then switch the map to an equal-area projection to see that distortion removed.
Extending it
Map dragging is suspended while the pointer hovers over a draggable outline. Suspending it only after pointer-down can leave the map in a stuck drag state.
Config type | truearea |
|---|---|
| Element | <webmapx-truearea-tool> |
| Placement | toolbar |
| Source | src/components/webmapx-truearea-tool.ts |
| Tests | tests/tool-registration.test.ts |
| Related | cartogram, projection, measure |