Add ol.geom.SimpleGeometry#getFirstCoordinate
This commit is contained in:
1 parent
60bba9aa12
commit
7ca47e3b2a
3 files changed
+17
No files matched your search
@@ -1,5 +1,6 @@
|
||||
@exportSymbol ol.geom.SimpleGeometry
|
||||
@exportProperty ol.geom.SimpleGeometry.prototype.getExtent
|
||||
@exportProperty ol.geom.SimpleGeometry.prototype.getFirstCoordinate
|
||||
@exportProperty ol.geom.SimpleGeometry.prototype.getLayout
|
||||
@exportProperty ol.geom.SimpleGeometry.prototype.getSimplifiedGeometry
|
||||
@exportProperty ol.geom.SimpleGeometry.prototype.transform
|
||||
@@ -99,6 +99,14 @@ ol.geom.SimpleGeometry.prototype.getExtent = function(opt_extent) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @return {ol.Coordinate} First coordinate.
|
||||
*/
|
||||
ol.geom.SimpleGeometry.prototype.getFirstCoordinate = function() {
|
||||
return this.flatCoordinates.slice(0, this.stride);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @return {Array.<number>} Flat coordinates.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user