See the dojox/geo/openlayers/GreatCircle reference documentation for more information.
Create a geodetic line as an array of dojox.geo.openlayers.GeometryFeature.
Create a geodetic line as a dojox.geo.openlayers.GeometryFeature between the point p1 ant the point p2. Result is a polyline approximation for which a new point is calculated every increment degrees.
Parameter | Type | Description |
---|---|---|
p1 | Point | The first point of the geodetic line. x and y fields are longitude and latitude in decimal degrees. |
p2 | Point | The second point of the geodetic line. x and y fields are longitude and latitude in decimal degrees. |
increment | Float | The value at which a new point is computed. |
The geodetic line as a GeometryFeature
Create a geodetic line as an array of OpenLayers.Geometry.LineString.
Create a geodetic line as a OpenLayers.Geometry.LineString between the point p1 and the point p2. Result is a polyline approximation for which a new point is calculated every increment degrees.
Parameter | Type | Description |
---|---|---|
p1 | Point | The first point of the geodetic line. x and y fields are longitude and latitude in decimal degrees. |
p2 | Point | The second point of the geodetic line. x and y fields are longitude and latitude in decimal degrees. |
increment | Float | The value at which a new point is computed. |
Create a geodetic line as an array of OpenLayers.Point.
Create a geodetic line as an array of OpenLayers.Point between the point p1 and the point p2. Result is a polyline approximation for which a new point is calculated every increment degrees.
Parameter | Type | Description |
---|---|---|
p1 | Point | The first point of the geodetic line. x and y fields are longitude and latitude in decimal degrees. |
p2 | Point | The second point of the geodetic line. x and y fields are longitude and latitude in decimal degrees. |
increment | Float | The value at which a new point is computed. |