MapShapeLook
How one polygon or line is drawn, already worked out from its layer's
style. The adapter fills colour at fillOpacity (polygons) or strokes
with it (lines), draws a polygon's outline in the palette's ink, hatches
with pattern in that ink, and dashes with dash.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { MapShapeLook } from "@mapcairn/core";
interface MapShapeLook
Properties
colour
readonly colour: string;
A hex colour, such as #e69f00.
dash
readonly dash: LineDash;
How the outline or line is dashed.
fillOpacity
readonly fillOpacity: number;
From 0 to 1. Polygons only.
pattern
readonly pattern: FillPattern;
The hatching drawn over a polygon, or none.
width
readonly width: number;
Line width, or outline width for a polygon, in CSS pixels.