NChartMapSeries Class Reference

Inherits from NChartSolidSeries : NChartSeries : NChartObject : NSObject
Declared in NChartMapSeries.h

Overview

The NChartMapSeries class provides methods to display map series. This type of series is different from the others because it requires its points to have markers of type NChartMapShape, otherwise the points are ignored. Instances of NChartMapShape can be created with a help of NChartMapTopobase that provides methods to load a GeoJSON file with particular map.
Semantically, each point of this series represents a particular map objects (for example, a country), and the series represents a map of some region (for example, a world map).

– zoomToShape:duration:delay:

Zoom and pan the map to the given shape.

- (void)zoomToShape:(NChartMapShape *)shape duration:(float)duration delay:(float)delay

Parameters

shape
  • shape to zoom to.
duration
  • animation duration (in seconds).
delay
  • delay of the animation start (in seconds).

Declared In

NChartMapSeries.h

– zoomToShapes:duration:delay:

Zoom and pan the map to the area enclosing the given array of shapes.

- (void)zoomToShapes:(NSArray *)shapes duration:(float)duration delay:(float)delay

Parameters

shapes
  • shapes to zoom to.
duration
  • animation duration (in seconds).
delay
  • delay of the animation start (in seconds).

Declared In

NChartMapSeries.h