API reference / @zaes/metoc / ViewAdapter
Interface: ViewAdapter
Where things are on the current view.
Methods
pointLiftPx()?
ts
pointLiftPx?(): number;How far up the screen point symbols are drawn from their location, in CSS pixels: a host that stands them on leader lines (a 3D map). An editor picks a point symbol there. Absent or 0: on the location.
Returns
number
toLonLat()
ts
toLonLat(pixel): [number, number];A CSS-pixel position in the viewport to EPSG:4326.
Parameters
pixel
Returns
[number, number]
toPixel()
ts
toPixel(lonLat): Pixel;EPSG:4326 to a CSS-pixel position in the map viewport.
Parameters
lonLat
Position