Merge pull request #9233 from fredj/rm_deprecated

Remove deprecated {get,set}SnapToPixel functions
This commit is contained in:
Frédéric Junod
2019-02-18 15:35:42 +01:00
committed by GitHub
2 changed files with 3 additions and 19 deletions

View File

@@ -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.

View File

@@ -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.