Remove getGeometry() from the API
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
### Next release
|
### 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
|
### v4.1.0
|
||||||
|
|
||||||
#### Adding duplicate layers to a map throws
|
#### Adding duplicate layers to a map throws
|
||||||
|
|||||||
@@ -104,7 +104,6 @@ ol.render.Feature.prototype.getFlatCoordinates =
|
|||||||
/**
|
/**
|
||||||
* Get the feature for working with its geometry.
|
* Get the feature for working with its geometry.
|
||||||
* @return {ol.render.Feature} Feature.
|
* @return {ol.render.Feature} Feature.
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
ol.render.Feature.prototype.getGeometry = function() {
|
ol.render.Feature.prototype.getGeometry = function() {
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Reference in New Issue
Block a user