mapfish-print icon indicating copy to clipboard operation
mapfish-print copied to clipboard

GeoJSON layer not displayed when containing features with different geometry types

Open ipasic opened this issue 7 years ago • 2 comments

When I add geoJSON layer to the request data, it is rendered in PDF output only if the features in FeatureCollection have same geometry type (e.g. Polygon). However, when features in FeatureCollection are of multiple geometry types (points/lines/polygons) then none of them is displayed in created PDF output. Is it limitation of the library or there could be some other error?

I am sure that GeoJSON data that I send with request is completely valid geojson because I tested it in different viewers and it's displayed correctly.

In theory i could make multiple geoJSON layers for each geometry type and then add each of them separately as a map layer to the print request data but it would be much easier if I could send it as single layer containing multiple geometries.

ipasic avatar Feb 19 '18 09:02 ipasic

Could that be related to this issue? https://github.com/mapfish/mapfish-print/issues/617

pvalsecc avatar Feb 19 '18 09:02 pvalsecc

I forgot to mention that i don't apply any style to my features but instead using just the default style.

ipasic avatar Feb 19 '18 10:02 ipasic