Constructor
new GeoPoint()
- Since:
- Source:
Extends
Members
type :String
The type of model this is.
Type:
- Source:
Methods
defaults() → {Object}
Overrides the default Backbone.Model.defaults() function to specify
default attributes for the GeoPoint.
Properties:
Name |
Type |
Description |
latitude |
number
|
The latitude of the point in degrees |
longitude |
number
|
The longitude of the point in degrees |
height |
number
|
The height of the point in meters above sea
level |
mapWidgetCoords |
*
|
Optionally, Coordinates in the format
provided by the map widget. For example, for Cesium, this is the Cesium
Cartesian3 ECEF coordinates. |
- Source:
Returns:
The default attributes
-
Type
-
Object
geodeticToECEF(coord) → {Array}
Convert a given point to an array of ECEF coordinates
Parameters:
Name |
Type |
Description |
coord |
Array
|
An array in the form [longitude, latitude] |
- Source:
Returns:
An array in the form [x, y, z]
-
Type
-
Array
parse(value) → {Object}
Parse a string according to a regular expression.
Parameters:
Name |
Type |
Description |
value |
string
|
A user-entered value for parsing into a latiude
and longitude pair. |
- Source:
Throws:
An error indicating that more than two numbers have been
entered.
Returns:
Latitude and longitude information for creating a
GeoPoint.
-
Type
-
Object
to2DArray() → {Array}
Get the long and lat of the point as an array
- Source:
Returns:
An array in the form [longitude, latitude]
-
Type
-
Array
toCZML() → {Object}
Convert the point to a feature in a CZML document
- Source:
Returns:
A CZML feature object with the type (Feature) and
geometry of the point.
-
Type
-
Object
toECEFArray() → {Array}
Convert the point to an array of ECEF coordinates
- Source:
Returns:
An array in the form [x, y, z]
-
Type
-
Array
toGeoJsonFeature() → {Object}
Convert the point to a GeoJSON feature object
- Source:
Returns:
A GeoJSON feature object with the type (Feature) and
geometry of the point
-
Type
-
Object
toGeoJsonGeometry() → {Object}
Convert the point to a GeoJSON geometry object
- Source:
Returns:
A GeoJSON geometry object with the type (Point) and
coordinates of the point
-
Type
-
Object
validate(attrs)
Validate the model attributes
Parameters:
Name |
Type |
Description |
attrs |
Object
|
The model's attributes |
- Source: