Maps API for JavaScript Developer's Guide

H.geo

Namespace Summary

This namespace provides functionality for geographic computation.

Property Summary

Table 1. Properties
Properties

static mercator : {H.geo.IProjection}

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

Method Summary

Table 2. Methods
Methods

static isDBC (lng1, lng2) : {boolean}

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

Namespace Description

This namespace provides functionality for geographic computation.

Property Details

static mercator: {H.geo.IProjection}

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

Method Details

static isDBC (lng1, lng2) : {boolean}

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

Parameters:
 
lng1:
{H.geo.Longitude}
 
The start longitude of the leg
lng2:
{H.geo.Longitude}
 
The end longitude of the leg
Returns:
 
{boolean}