Skip to main content

ProjectionUtil

geovisto-mapReadme | API


geovisto-map / ProjectionUtil

Class: ProjectionUtil

This class provides help functions for projections of points used in the Connection tool.

Author

Jiri Hynek

Constructors

new ProjectionUtil()

new ProjectionUtil(): ProjectionUtil

Returns

ProjectionUtil

Methods

getDataProjectionFunction()

static getDataProjectionFunction(map, zoom): (node) => void

It provides the function which projects the given node to the given leaflet map with the given zoom.

Parameters

map: Map

zoom: number

Returns

Function

Parameters

node: any

Returns

void

Source

tools/layers/connection/model/internal/util/ProjectionUtil.ts:24


getPathProjectionFunction()

static getPathProjectionFunction(map, zoom): Line\<[number, number]>

It provides the the d3 line function which also: (1) unprojects the given point from the given leaflet map with given zoom (2) projects the point of (1) to the current map state

Parameters

map: Map

zoom: number

Returns

Line\<[number, number]>

Source

tools/layers/connection/model/internal/util/ProjectionUtil.ts:41