Namespace: geo

H.geo

This namespace provides functionality for geographic computation.

Classes

AbstractGeometry
LineString
MultiGeometry
MultiLineString
MultiPoint
MultiPolygon
PixelProjection
Point
Polygon
Rect

Members

H.geo.mercator H.geo.IProjection staticnon-null

This property represents a spherical Mercator projection. It represents the Earth as a sphere and maps geographic coordinates to a corresponding two-dimensional space. The Map uses this projection by default.

Methods

H.geo.isDBC (lng1, lng2)boolean static

To obtain whether a leg (formed by the given two longitudes) crosses the International Date Line.

Name Type Description
lng1 H.geo.Longitude

The start longitude of the leg

lng2 H.geo.Longitude

The end longitude of the leg

Returns:
Type Description
boolean

Type Definitions

H.geo.Altitude number | undefined

This property holds a geographic coordinate that specifies the elevation of a point on the Earth's surface in meters. A value of undefined is treated as 0.

H.geo.Latitude number

This property holds a geographic coordinate that specifies the north-south position of a point on the Earth's surface in the range from -90 to + 90 degrees, inclusive.

H.geo.Longitude number

This property holds a geographic coordinate that specifies the east-west position of a point on the Earth's surface in the range from -180 to 180 degrees, inclusive.

Interface Definitions

H.geo.IPoint

An interface to represent a geographic point. Every point in geographic space is represented by three coordinates latitude, longitude and optional altitude.

H.geo.IProjection

This interface represents a map projection. It defines functions that transform geographic coordinates to EPSG3857 coordinate reference system, which uses x, y values in range 0..1