Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

latlngToGraph

latlngToGraph(coord): object

Defined in: packages/layer-maplibre/src/utils.ts:6

Given a geo point returns its graph coords.

Parameters

coord

lat

number

lng

number

Returns

object

x

x: number

y

y: number