Inset map

Shows where the main map is.

type: insetMapstandalonestable

What it does

At high zoom, a map can stop showing where you are. The inset map is a smaller map in the corner, held a few zoom levels out, with a box around the main map's current view.

It follows the main map. Pan the main map and the box moves. Zoom the main map and the inset keeps its offset.

Using it

Glance at it. The rectangle is the area of the main map.

Where the control allows it, the inset can be collapsed to get it out of the way, and restored when you want the context back.

In your own map

Add insetMap with a position, usually a corner the main map's other controls are not using.

Extending it

The inset is a second map instance, not a picture. It can have its own background and projection, but it also makes its own tile requests.

Config typeinsetMap
Element<webmapx-inset-map>
Placementstandalone
Sourcesrc/components/webmapx-inset-map.ts
Teststests/tool-registration.test.ts
Relatednavigation, fullscreen, layerOverview