MapTool
The optional tools a page can add to the map: "search" (a search box,
which needs services.search), "map-options" (the sheet with the
basemaps, a pin and saving the map as an image, and the layers when layers
is given), "measure", "directions" (routes and travel-time areas, which
needs services.routing), "draw" (drawing shapes, which needs no
provider), "locate" (Locate me, which needs services.location) and
"settings". Zoom, the compass, the credits and the scale are always there.
"directions" and "draw" are in releases after 0.2.0, not in 0.2.0 or
any earlier release.
This is a type alias exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { MapTool } from "@mapcairn/map";
type MapTool = "search" | "map-options" | "measure" | "directions" | "draw" | "locate" | "settings";