MapChart
Type module
Sources
Items from MapChart can be imported/included and used via following ways.
/** * Import via: MapChart.ts * Access items like: $mapchart.myVariable */import * as $mapchart from "@amcharts/amcharts5/MapChart";Variables
homeKeysType
ArrayDefault[ "zoomLevel", "translateX", "translateY", "rotationX", "rotationY" ]projectionRegistryType
objectProjections that
MapChart'sprojectionNamecan name.am5mapregisters its bundled projections here; add others withregisterProjection().
Functions
registerProjection(name:string,
factory: () =>GeoProjection)Returns () =>
GeoProjectionRegisters a projection factory under
name, forMapChart'sprojectionName.Returns the factory tagged with the name: a chart given
projection: cc(), whereconst cc = registerProjection("geoConicConformal", geoConicConformal), serializes with itsprojectionName, as the bundled projections do.tagProjection(name:string,
factory: () =>GeoProjection)Returns () =>
GeoProjectionWraps a projection factory so the projections it makes carry
name, which letsChartSerializerwriteprojectionNamefor a chart that setsprojectionin code.