Merge pull request #11501 from mike-000/patch-15
Empty this.canvas_ for all pixel ratios when render() is called
This commit is contained in:
@@ -52,7 +52,7 @@ const style = new Style({
|
|||||||
});
|
});
|
||||||
|
|
||||||
new Map({
|
new Map({
|
||||||
pixelRatio: 1,
|
pixelRatio: 2,
|
||||||
layers: [
|
layers: [
|
||||||
new VectorLayer({
|
new VectorLayer({
|
||||||
source: vectorSource,
|
source: vectorSource,
|
||||||
|
|||||||
@@ -404,6 +404,7 @@ class RegularShape extends ImageStyle {
|
|||||||
|
|
||||||
this.draw_(renderOptions, context, 0, 0, 1);
|
this.draw_(renderOptions, context, 0, 0, 1);
|
||||||
|
|
||||||
|
this.canvas_ = {};
|
||||||
this.canvas_[1] = context.canvas;
|
this.canvas_[1] = context.canvas;
|
||||||
|
|
||||||
// canvas.width and height are rounded to the closest integer
|
// canvas.width and height are rounded to the closest integer
|
||||||
|
|||||||
Reference in New Issue
Block a user