diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index 8159f7496b..817a0cfc49 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -4,11 +4,13 @@ #### Backwards incompatible changes -##### Removal of the deprecated "inherits" function +##### Removal of deprecated methods The `inherits` function that was used to inherit the prototype methods from one constructor into another has been removed. The standard ECMAScript classes should be used instead. +The deprecated `getSnapToPixel` and `setSnapToPixel` functions from the `ImageStyle` class have been removed. + ##### New internal tile coordinates Previously, the internal tile coordinates used in the library had an unusual row order – the origin of the tile coordinate system was at the top left as expected, but the rows increased upwards. This meant that all tile coordinates within a tile grid's extent had negative `y` values. diff --git a/src/ol/style/Image.js b/src/ol/style/Image.js index 05894005c1..a1ef302518 100644 --- a/src/ol/style/Image.js +++ b/src/ol/style/Image.js @@ -103,16 +103,6 @@ class ImageStyle { return this.scale_; } - /** - * This method is deprecated and always returns false. - * @return {boolean} false. - * @deprecated - * @api - */ - getSnapToPixel() { - return false; - } - /** * Get the anchor point in pixels. The anchor determines the center point for the * symbolizer. @@ -223,14 +213,6 @@ class ImageStyle { this.scale_ = scale; } - /** - * This method is deprecated and does nothing. - * @param {boolean} snapToPixel Snap to pixel? - * @deprecated - * @api - */ - setSnapToPixel(snapToPixel) {} - /** * @abstract * @param {function(this: T, import("../events/Event.js").default): void} listener Listener function.