Skip to content

Commit

Permalink
Print complex styles
Browse files Browse the repository at this point in the history
  • Loading branch information
rmichaelis committed Jun 26, 2024
1 parent 627adcb commit 2d0cc67
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 2d0cc67

Please sign in to comment.