MapChart.geoToTopobase

Syntax

geoToTopobase(lng: number; lat: number);

Parameters

lng. Longitude coordinate.

lat. Latitude coordinate.

Description

The geoToTopobase method converts geographical coordinates into topobase coordinates.

Comments

Method returns the value of the PP.Point type.

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Convert geographical coordinates into map topobase coordinates:

// Set geographical coordinates
lng = 75.380045583183;
lat = 35.6136504260887;
// Convert coordinates and display result to the console
coord = map.geoToTopobase(lng, lat);
console.debug(coord);
// -> PP.Point {_X: 327.2021399482517, _Y: 627.9895094574584, _Id: "Point6454"}

After executing the example the browser console displays map topobase coordinates.

See also:

MapChart