如何防止OpenLayers应用像素提示?

时间:2019-02-26 12:52:13

标签: javascript openlayers openlayers-5

我正在使用OpenLayers 5.3.0,我发现它对样式应用了像素提示。两个同心圆不是完美地居中。

这是用于呈现特定功能的样式的代码:

style = [
            new Style({
                image: new Circle({
                    radius: orangeRadius,
                    fill: new Fill({
                        color: '#f4b04a'
                    }),
                    anchor: [0.5, 0.5],

                }),
            })
            , new Style({
                image: new Circle({
                    radius: greenRadius,
                    stroke: new Stroke({
                        color: '#48bfa5'
                        , width: 3
                    }),
                    anchor: [0.5, 0.5],

                }),
            })
        ];

这就是我得到的:

enter image description here

如何禁用像素提示?

谢谢!

0 个答案:

没有答案