lib.pixi.maps.GeoJson

GeoJson is a standardized format of how to display geometry in a geographical context, using latitude/longitude pairs to display one (or multiple) Point, Line or Polygon.

This implementation is roughly based on RFC7946.

GeoJson objects consist of two objects:

The points are an array of exactly two values in the format [longitude, latitude]. Here the implementation breaks with the standardized format, as multiple point formats can be used for convenience (see Point section).

Type Implemented
Point
Line
Polygon
MultiPoint
MultiLine
MultiPolygon

Point

Points represent a single point on the map. In the following all valid coordinate types are shown

Line

The line can be used to show a path or connection between multiple points.

Polygon

Polygons are used to represent shapes. They are an array of two pointarrays. The first represent the shape, the optional second one a hole that can be cut into the shape.

MultiPolygon

Multipolygons are an array of polygons.

Applying GeoJson Objects to the Map

The GeoJson data is used to create a GeoGraphics object.