mapfish / mapfish-print

A component of MapFish for printing templated cartographic maps. This module is the Java serverside module.
http://mapfish.github.io/mapfish-print-doc/
BSD 2-Clause "Simplified" License
185 stars 416 forks source link

Gray box instead of png icon for "externalGraphic": "<URL>" #682

Open romanzoller opened 6 years ago

romanzoller commented 6 years ago

This png icon, referenced in a style definition as

"externalGraphic": "http://localhost:8080/img/markers/poi1.png"

is not rendering correctly in mapfish-print 3.14.0.

Using mapfish-print 3.13.0: image

Using mapfish-print 3.14.0: image

The bug might be related to changing the version of geotools from 19.0 to 19.1.

Between 19.0 and 19.1, geotools reformatted their codebase, but by looking at the changes before and the changes after, I suspect the bug might be related to this new function for reading pngs.

When using a local path instead of a URL (i.e. img/markers/poi1.png), the icon is rendered correctly (assuming of course that poi1.png exists).

pvalsecc commented 6 years ago

This is confirmed. This regression comes from 19.1. I've downgraded geotools to 19.0 in the mean time.