error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
9849eaf1e7
commit
3fd4ac2f94
@ -227,26 +227,27 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements
|
|||||||
const centroid = getCenter(feature.getGeometry().getExtent());
|
const centroid = getCenter(feature.getGeometry().getExtent());
|
||||||
value = Math.round(centroid[0]) + ',' + Math.round(centroid[1]);
|
value = Math.round(centroid[0]) + ',' + Math.round(centroid[1]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (value) {
|
||||||
|
displayText += value + (i < propertiesToShow.length ? '\n' : '');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (value) {
|
|
||||||
displayText += value + (i < propertiesToShow.length ? '\n' : '');
|
const styleText = new style.Text({
|
||||||
|
font: '13px Calibri,sans-serif',
|
||||||
|
fill: new style.Fill({ color: '#ffffff' }),
|
||||||
|
stroke: new style.Stroke({ color: '#000000', width: 2 }),
|
||||||
|
text: displayText
|
||||||
|
});
|
||||||
|
|
||||||
|
if (overrule) {
|
||||||
|
if (overrule.getFont()) styleText.setFont(overrule.getFont());
|
||||||
|
if (overrule.getFill()) styleText.setFill(overrule.getFill());
|
||||||
|
if (overrule.getStroke()) styleText.setStroke(overrule.getStroke());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return styleText;
|
||||||
}
|
}
|
||||||
|
|
||||||
const styleText = new style.Text({
|
|
||||||
font: '13px Calibri,sans-serif',
|
|
||||||
fill: new style.Fill({ color: '#ffffff' }),
|
|
||||||
stroke: new style.Stroke({ color: '#000000', width: 2 }),
|
|
||||||
text: displayText
|
|
||||||
});
|
|
||||||
|
|
||||||
if (overrule) {
|
|
||||||
if (overrule.getFont()) styleText.setFont(overrule.getFont());
|
|
||||||
if (overrule.getFill()) styleText.setFill(overrule.getFill());
|
|
||||||
if (overrule.getStroke()) styleText.setStroke(overrule.getStroke());
|
|
||||||
}
|
|
||||||
|
|
||||||
return styleText;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user