Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
These are generic types that are used across multiple modules.
FeltBoundary: [
number
,number
,number
,number
]
The edges of the map in the form of a bounding box.
The boundary is a tuple of the form [west, south, east, north]
.
Geometry:
PointGeometry
|PolygonGeometry
|LineStringGeometry
|MultiLineStringGeometry
|MultiPolygonGeometry
A GeoJSON-like geometry of any type
PointGeometry: {
type
:"Point"
;coordinates
:LngLatTuple
; }
A GeoJSON-like point geometry.
type:
"Point"
coordinates:
LngLatTuple
MultiLineStringGeometry: {
type
:"MultiLineString"
;coordinates
:LineStringGeometry
["coordinates"
][]; }
A GeoJSON-like multi-line string geometry.
type:
"MultiLineString"
coordinates:
LineStringGeometry
["coordinates"
][]
LngLatTuple: [
number
,number
]
A tuple representing a longitude and latitude coordinate.
This is used hen serializing geometry because that's the standard used in GeoJSON.
FeltZoom:
number
The zoom level of the map.
It is a floating-point number between 1 and 23, where 1 is the most zoomed out and 23 is the most zoomed in.
LineStringGeometry: {
type
:"LineString"
;coordinates
:LngLatTuple
[]; }
A GeoJSON-like line string geometry.
type:
"LineString"
coordinates:
LngLatTuple
[]
PolygonGeometry: {
type
:"Polygon"
;coordinates
:LngLatTuple
[][]; }
A GeoJSON-like polygon geometry.
type:
"Polygon"
coordinates:
LngLatTuple
[][]
MultiPolygonGeometry: {
type
:"MultiPolygon"
;coordinates
:PolygonGeometry
["coordinates"
][]; }
A GeoJSON-like multi-polygon geometry.
type:
"MultiPolygon"
coordinates:
PolygonGeometry
["coordinates"
][]