@d3-maps/core / graticule
graticule
Table of contents
Functions
renderGraticule()
ts
function renderGraticule(context: MapContext, config?: GraticuleConfig): string | null;Parameters
| Parameter | Type |
|---|---|
context | MapContext |
config? | GraticuleConfig |
Returns
string | null
renderOutline()
ts
function renderOutline(context: MapContext): string | null;Parameters
| Parameter | Type |
|---|---|
context | MapContext |
Returns
string | null
Interfaces
GraticuleConfig
Extra graticule generator method calls to apply before rendering.
Uses d3-geo geoGraticule() setter method names as keys. Example: { step: [[10, 10]], precision: 2.5 }
See
https://d3js.org/d3-geo/shape#geoGraticule
Extends
MethodsToModifiers<GeoGraticuleGenerator>