Hi, I'm trying to add a CIM symbol to one of our Renderer but it doesn't seem to work. I'm not sure which bit of it is not supported (CIMTextSymbol with CIMVectorMarker seems to be supported according to doc?)
{
"type": "CIMPolygonSymbol",
"symbolLayers": [
{
"size": 10,
"type": "CIMVectorMarker",
"frame": {
"xmax": 141.9824757732327,
"xmin": 0,
"ymax": 175.99649819859255,
"ymin": 0
},
"enable": true,
"clippingPath": {
"path": {
"rings": [
[
[
0.7087311602657206,
-0.7122125324085005
],
[
142.70873116026573,
-0.7122125324085005
],
[
142.70873116026573,
175.2877874675915
],
[
0.7087311602657206,
175.2877874675915
],
[
0.7087311602657206,
-0.7122125324085005
]
]
]
},
"type": "CIMClippingPath",
"clippingType": "Intersect"
},
"respectFrame": true,
"markerGraphics": [
{
"type": "CIMMarkerGraphic",
"symbol": {
"type": "CIMTextSymbol",
"height": 82.99999505281448,
"symbol": {
"type": "CIMPolygonSymbol",
"symbolLayers": [
{
"type": "CIMSolidFill",
"color": [
0,
0,
0,
100
],
"enable": true
}
]
},
"depth3D": 1,
"hinting": "Default",
"kerning": true,
"fontType": "TTOpenType",
"haloSize": 1,
"textCase": "Normal",
"ligatures": true,
"countryISO": "GBR",
"fontEffects": "Normal",
"languageISO": "eng",
"letterWidth": 100,
"lineGapType": "ExtraLeading",
"wordSpacing": 100,
"fontEncoding": "Unicode",
"fontStyleName": "Regular",
"textDirection": "LTR",
"drawSoftHyphen": true,
"fontFamilyName": "Calibri",
"billboardMode3D": "FaceNearPlane",
"blockProgression": "TTB",
"verticalAlignment": "Baseline",
"horizontalAlignment": "Left",
"extrapolateBaselines": true,
"verticalGlyphOrientation": "Right"
},
"geometry": {
"x": 51.544664845568455,
"y": 51.3164065632746
},
"textString": "E"
}
],
"billboardMode3D": "FaceNearPlane",
"markerPlacement": {
"seed": 13,
"type": "CIMMarkerPlacementInsidePolygon",
"stepX": 16,
"stepY": 16,
"clipping": "ClipAtBoundary",
"gridType": "Fixed",
"randomness": 100
},
"anchorPointUnits": "Relative",
"dominantSizeAxis3D": "Y",
"scaleSymbolsProportionally": true
},
{
"type": "CIMSolidStroke",
"color": [
0,
0,
0,
100
],
"width": 0.4,
"enable": true,
"capStyle": "Round",
"joinStyle": "Round",
"miterLimit": 10,
"lineStyle3D": "Strip"
},
{
"type": "CIMSolidFill",
"color": [
255,
255,
190,
100
],
"enable": true
}
]
}
Hi - your symbol appears to be working as expected for me.
Here's a codepen: https://codepen.io/annefitz/pen/yLEOgeE
Hope that helps! If you're still running into an issue with this symbol - then please provide some more information (screenshots, error messages, etc). Thanks!
Based on your codepen it looks like it works fine with 4.25 (doesn't work with 4.24) so I guess there's some increased support for CIM symbols which is great
Oh sorry I didn't even notice that 😅 Yes, we have improved CIM support in 4.25, which is scheduled for release next week.