1

I am using OpenLayers 5.3.0 and I found that it applies pixel hinting to the styles. Two concentric circles are aren't perfectly centered.

This is the code for the style to render a specific feature:

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],

                }),
            })
        ];

And this is what I get:

enter image description here

How can I disable pixel hinting?

Thanks you!

francescortiz
  • 531
  • 4
  • 13

0 Answers0