Type aliases
AnyGeoPath
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoPath.d.ts:11
AnyGeoPoint
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoPoint.d.ts:7
AnyGeoSegment
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoSegment.d.ts:9
AnyGeoShape
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoShape.d.ts:8
AnyGeoSpline
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoSpline.d.ts:9
AnyGeoTile
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoTile.d.ts:9
GeoJson
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:6
GeoJsonBbox
GeoJsonBbox: [ number , number , number , number ] | [ number , number , number , number , number , number ]
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:59
GeoJsonGeometry
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:7
GeoJsonGeometryType
GeoJsonGeometryType: "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection"
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:9
GeoJsonObjectType
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:8
GeoJsonPosition
GeoJsonPosition: [ number , number ] | [ number , number , number ]
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:17
GeoJsonProperties
GeoJsonProperties: {}
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:56
GeoPathSplines
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoPath.d.ts:12
GeoPointTuple
GeoPointTuple: [ number , number ]
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoPoint.d.ts:12
GeoSplinePoints
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoSpline.d.ts:10
GeoTileTuple
GeoTileTuple: [ number , number , number ]
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoTile.d.ts:15
Variables
Const GeoBoxInterpolator
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoBoxInterpolator.d.ts:3
GeoJson
GeoJson: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:60
Type declaration
is: function
is( value: unknown ) : value is GeoJson
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:61
Parameters
Returns value is GeoJson
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:62
Parameters
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:63
Parameters
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:64
Parameters
Returns ( null | GeoShape ) []
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:65
Parameters
GeoJsonFeature
GeoJsonFeature: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:99
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:100
Parameters
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:101
Parameters
GeoJsonFeatureCollection
GeoJsonFeatureCollection: { is: any ; toShapes: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:103
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:104
Parameters
toShapes: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:105
Parameters
Returns ( null | GeoShape ) []
GeoJsonGeometry
GeoJsonGeometry: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:67
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:68
Parameters
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:69
Parameters
GeoJsonGeometryCollection
GeoJsonGeometryCollection: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:95
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:96
Parameters
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:97
Parameters
GeoJsonLineString
GeoJsonLineString: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:79
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:80
Parameters
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:81
Parameters
GeoJsonMultiLineString
GeoJsonMultiLineString: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:83
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:84
Parameters
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:85
Parameters
GeoJsonMultiPoint
GeoJsonMultiPoint: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:75
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:76
Parameters
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:77
Parameters
GeoJsonMultiPolygon
GeoJsonMultiPolygon: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:91
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:92
Parameters
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:93
Parameters
GeoJsonPoint
GeoJsonPoint: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:71
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:72
Parameters
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:73
Parameters
GeoJsonPolygon
GeoJsonPolygon: { is: any ; toShape: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:87
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:88
Parameters
toShape: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoJson.d.ts:89
Parameters
Const GeoPointInterpolator
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoPointInterpolator.d.ts:3
GeoProjection
GeoProjection: { is: any }
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoProjection.d.ts:9
Type declaration
is: function
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoProjection.d.ts:10
Parameters
Const GeoSegmentInterpolator
Defined in swim-system-js/swim-core-js/@swim/geo/lib/main/GeoSegmentInterpolator.d.ts:3
@swim/geo
@swim/geo implements geospatial coordinate, projection, and geometry types. @swim/geo is part of the @swim/core framework.
Installation
npm
For an npm-managed project,
npm install @swim/geo
to make it a dependency. TypeScript sources will be installed intonode_modules/@swim/geo/main
. Transpiled JavaScript and TypeScript definition files install intonode_modules/@swim/geo/lib/main
. And a pre-built UMD script can be found innode_modules/@swim/geo/dist/main/swim-geo.js
.Browser
Browser applications can load
swim-core.js
, which comes bundled with the @swim/geo library, directly from the SwimOS CDN.Alternatively, the standalone
swim-system.js
script may be loaded from the SwimOS CDN, which bundles @swim/geo together with all other @swim/system libraries.Usage
ES6/TypeScript
@swim/geo can be imported as an ES6 module from TypeScript and other ES6-compatible environments.
CommonJS/Node.js
@swim/geo can also be used as a CommonJS module in Node.js applications.
Browser
When loaded by a web browser, the
swim-core.js
script adds all @swim/geo library exports to the globalswim
namespace.The
swim-system.js
script also adds all @swim/geo library exports to the globalswim
namespace, making it a drop-in replacement forswim-core.js
when additional @swim/system libraries are needed.