The Graphic size of PointSymbolizer is not converted to the radius
boeckMt opened this issue · 0 comments
boeckMt commented
As described in the SLD spec
The Size element gives the absolute size of the graphic in pixels...
so the incoming size should be treated as diameter
https://github.com/NieuwlandGeo/SLDReader/blob/master/src/OlStyler.js#L185
const radius = Number(style.size) || 10;
should be
const size Number(style.size) || 10; const radius = size / 2;