camptocamp / GeoMapFish

6 stars 1 forks source link

Long label in polygons (polygons, rectangle, circle) are not displayed in print (pdf/png) #85

Open ochriste opened 7 months ago

ochriste commented 7 months ago

When drawing a surface of type polygon, rectangle or circle, when adding a visible label, the label is not displayed in print (pdf/png) if the label is longer than a certain length.

The max length seems to be something like the surface bbox + a certain margin.

julianhafner commented 7 months ago

https://mapfish.github.io/mapfish-print-doc/styles.html#vendoroptions

goodnessOfFit(0.5): Sets the ratio of the label that must sit inside the geometry to allow drawing the label. Works only on polygons. Provided values should span from 0 .. 1

you can set this variable in vars.yaml of the GMF, 0 doesn't seem to work though.

ochriste commented 7 months ago

@julianhafner thank you

ochriste commented 7 months ago

well, even using a value as small as "0.0000000000000000000000001" doesnt work, so im wondering if Mapfish Print even handle this request parameter correctly from the json payload