mirror of
https://github.com/NASAWorldWind/WebWorldWind.git
synced 2026-01-25 15:23:04 +00:00
The coordinates in a WKT shape are ordered as “longitude latitude”.
This commit is contained in:
parent
f7a6e19fc5
commit
a2ce328ec5
@ -94,9 +94,9 @@ define([
|
||||
*/
|
||||
WktObject.prototype.addCoordinates = function (coordinates) {
|
||||
if (this._is3d) {
|
||||
this.coordinates.push(new Position(coordinates[0], coordinates[1], coordinates[2] || 0));
|
||||
this.coordinates.push(new Position(coordinates[1], coordinates[0], coordinates[2] || 0));
|
||||
} else {
|
||||
this.coordinates.push(new Location(coordinates[0], coordinates[1]));
|
||||
this.coordinates.push(new Location(coordinates[1], coordinates[0]));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user