com.nchart3d.NChart.NChartMapTopobase Class Reference

The NChartMapTopobase class provides methods to load the topobase for NChartMapSeries from a GeoJSON file. More...

Public Member Functions

 NChartMapTopobase (String geoJSON)
 Create topobase with the GeoJSON file contents. More...
 
HashMap< String, NChartMapShapegetShapes ()
 Dictionary of shapes loaded. More...
 

Detailed Description

The NChartMapTopobase class provides methods to load the topobase for NChartMapSeries from a GeoJSON file.


Map topobase is a set of map shapes (represented as NChartMapShape instances), which can be displayed on the map. Each shape inherits from the NChartMarker, so it can be assigned to the NChartPointState of NChartPoint provided for the NChartMapSeries. This is the way to supply the topobase data to the chart. Topobases are loaded from the GeoJSON files, which you can obtain in map services like OpenStreetMap (https://www.openstreetmap.org) or in dedicated storages like this one: https://github.com/johan/world.geo.json/tree/master
Also, here is a handy tool to inspect GeoJSON files once you obtained them: https://geojson.io

Constructor & Destructor Documentation

com.nchart3d.NChart.NChartMapTopobase.NChartMapTopobase ( String  geoJSON)
inline

Create topobase with the GeoJSON file contents.

Parameters
geoJSON- string representation of the GeoJSON file.

Member Function Documentation

HashMap<String, NChartMapShape> com.nchart3d.NChart.NChartMapTopobase.getShapes ( )
inline

Dictionary of shapes loaded.

Keys are identifiers of the shapes, values are NChartMapShape instances.