MapPlacement
What it takes to place marks drawn over the map (the pin, the measure line,
drawn shapes) on the screen: the map's shape, its view, and the adapter's
project and isVisible.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { MapPlacement } from "@mapcairn/core";
interface MapPlacement
Properties
projection
readonly projection: MapProjection;
Whether the map is flat or a globe.
view
readonly view: Pick<ViewState, "center" | "zoom">;
The centre and zoom the positions are placed against.
Methods
isVisible
isVisible(position: LatLng): boolean;
Whether a position is on the side of the map the person can see.
position(LatLng)
project
project(position: LatLng): PixelPoint;
The pixel of a position, as the adapter's project gives it.
position(LatLng)