Type module
Sources
Items from MapUtils can be imported/included and used via following ways.
/** * -------------------------------------------------------- * Import via: MapUtils.ts * Access items like: $maputils.myVariable * $maputils.myFunction() * -------------------------------------------------------- */ import * as $maputils from "@amcharts/amcharts5/MapUtils";
Variables
MapUtils does not have any variables.
Functions
|
getGeoArea( geometry: ) |
Returns Returns the area of a geometry on a sphere of radius 1, in steradians: the whole globe is 4π. |
|---|---|
|
getGeoBounds( geometry: ) |
Returns Returns the geographic bounds of a geometry, in degrees: longitudes |
|
getGeoCentroid( geometry: ) |
Returns Returns the geographic centroid of a geometry. |
|
getGeoCircle( geoPoint: ) |
Returns Returns a circle on the globe as GeoJSON geometry, for the |
|
getGeoRectangle( north: ) |
Returns Returns the area between two latitudes and two longitudes as GeoJSON geometry, for the |
|
getSunPosition( date: ) |
Returns Returns the point where the sun is directly overhead at a given time, such as for the @since 5.21.0 |
|
normalizeGeoPoint( geoPoint: ) |
Returns Brings a point's longitude within Changes |