Skip to content

Commit

Permalink
Merge pull request #3161 from Geoportail-Luxembourg/fix_3D_style
Browse files Browse the repository at this point in the history
Print complex styles
  • Loading branch information
rmichaelis authored Jun 26, 2024
2 parents 21f7dec + 2d0cc67 commit 58624b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geoportal/jsapi/src/printmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ encodeLayer(arr, layer, resolution) {
this.encodeImageLayer_(arr, layer);
} else if (layer instanceof TileLayer) {
this.encodeTileLayer_(arr, layer);
} else if (layer instanceof VectorLayer) {
} else if (layer instanceof VectorLayer || layer instanceof ol.layer.Vector) {
this.encodeVectorLayer_(arr, layer, resolution);
}
}
Expand Down Expand Up @@ -614,6 +614,7 @@ encodeVectorStyle_(object, geometryType, style, styleId, featureStyleProp) {
this.encodeVectorStylePoint_(styleObject.symbolizers, imageStyle);
}
}

if (textStyle !== null) {
this.encodeTextStyle_(styleObject.symbolizers, textStyle);
}
Expand Down Expand Up @@ -676,7 +677,7 @@ encodeVectorStyleLine_(symbolizers, strokeStyle) {
*/
encodeVectorStylePoint_(symbolizers, imageStyle) {
var symbolizer;
if (imageStyle instanceof CircleStyle) {
if (imageStyle instanceof CircleStyle || imageStyle instanceof ol.style.Circle) {
symbolizer = /** @type {MapFishPrintSymbolizerPoint} */ ({
type: 'point'
});
Expand Down

0 comments on commit 58624b9

Please sign in to comment.