Merge pull request #6814 from ahocevar/renderfeature-getgeometry
Re-add ol.render.Feature#getGeometry()
This commit is contained in:
@@ -2,10 +2,6 @@
|
||||
|
||||
### Next release
|
||||
|
||||
#### Removal of `ol.render.Feature#getGeometry()`
|
||||
|
||||
The `ol.render.Feature#getGeometry()` function simply returns the feature itself. Users who relied on this function can use the `ol.render.Feature` instance directly instead.
|
||||
|
||||
### v4.1.0
|
||||
|
||||
#### Adding duplicate layers to a map throws
|
||||
|
||||
@@ -119,8 +119,10 @@ ol.render.Feature.prototype.getFlatCoordinates =
|
||||
|
||||
|
||||
/**
|
||||
* Get the feature for working with its geometry.
|
||||
* For API compatibility with {@link ol.Feature}, this method is useful when
|
||||
* determining the geometry type in style function (see {@link #getType}).
|
||||
* @return {ol.render.Feature} Feature.
|
||||
* @api
|
||||
*/
|
||||
ol.render.Feature.prototype.getGeometry = function() {
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user