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 geo area of a geometry |
---|---|
getGeoBounds( geometry: ) |
Returns Returns bounds of a geometry |
getGeoCentroid( geometry: ) |
Returns Returns geo centroid of a geometry |
getGeoCircle( geoPoint: ) |
Returns Returns a GeoJSON representation of a circle, suitable for use as |
getGeoRectangle( north: ) |
Returns Returns a GeoJSON representation of a rectangle, suitable for use as |
normalizeGeoPoint( geoPoint: ) |
Returns Update longitudes and latitudes that wrap around -180/180 and -90/90 values. |