Remove deprecated {get,set}SnapToPixel functions
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user