const symbol = new tf.map.ArcGIS.CIMSymbol({
data:
{
type: "CIMSymbolReference",
symbol:
{
type: "CIMPointSymbol",
symbolLayers:
[{
name: "countdownTextHours",
isTimeParts : true,
type: "CIMPictureMarker",
enable: time.hours > 0,
size: offsetX * 2,
url: this._createTextImage(time.hours, fontcolor),
offsetX: 28 + additionalOffsetX,
offsetY: offsetY,
anchorPoint: { x: 0, y: 0 },
frame: frameValues
},{ name: "colon_left",
isTimeParts: true,
type: "CIMPictureMarker",
enable: time.hours > 0,
size: 10,
url: colonUrl,
offsetX: 38 + additionalOffsetX,
offsetY: offsetY,
anchorPoint: { x: 0, y: 0 },
frame: frameValues
},{
name: "countdownTextMinutes",
isTimeParts: true,
type: "CIMPictureMarker",
enable: true,
size: offsetX * 2,
url: this._createTextImage(time.minutes, fontcolor),
offsetX: 48 + additionalOffsetX,
offsetY: offsetY,
anchorPoint: { x: 0, y: 0 },
frame: frameValues,
},{ name: "colon_right",
isTimeParts: true,
type: "CIMPictureMarker",
enable: true,
size: 10,
url: colonUrl,
offsetX: 58 +additionalOffsetX,
offsetY: offsetY,
anchorPoint: { x: 0, y: 0 },
frame: frameValues
},{
name: "countdownTextSeconds",
isTimeParts: true,
type: "CIMPictureMarker",
enable: true,
size: offsetX * 2,
url: this._createTextImage(time.seconds, fontcolor),
offsetX: 68 + additionalOffsetX,
offsetY: offsetY,
anchorPoint: { x: 0, y: 0 },
frame: frameValues,
},{
name: "background",
type: "CIMVectorMarker",
enable: true,
size: BACKGROUND_SIZE,
offsetX: BACKGROUND_OFFSET_X,
offsetY: offsetY,
anchorPoint: { x: 0, y: 0 },
anchorPointUnits: "Relative",
frame: frameValues,
markerGraphics:
[
{
type: "CIMMarkerGraphic",
geometry:
{
rings: backgroundRings
},
symbol:
{
type: "CIMPolygonSymbol",
symbolLayers:
[
{
type: "CIMSolidFill",
enable: true,
color: this.ArcGIS.Color.fromHex(backgroundColor).toJSON()
},
]
}
}
],
scaleSymbolsProportionally: true,
respectFrame: true
},{
name: "border",
type: "CIMVectorMarker",
enable: true,
size: BACKGROUND_SIZE,
offsetX: BACKGROUND_OFFSET_X,
offsetY: offsetY,
anchorPoint: { x: 0, y: 0 },
anchorPointUnits: "Relative",
frame: frameValues,
markerGraphics:
[
{
type: "CIMMarkerGraphic",
geometry:
{
rings: borderRings
},
symbol:
{
type: "CIMPolygonSymbol",
symbolLayers:
[
{
type: "CIMSolidFill",
enable: true,
color: borderColor
},
]
}
}
],
scaleSymbolsProportionally: true,
respectFrame: true
},{
name: "bubblePicture",
type: "CIMPictureMarker",
enable: true,
anchorPoint: { x: 0, y: 0 },
anchorPointUnits: "Relative",
size: offsetX * 2,
url: url,
offsetX: offsetX,
offsetY: offsetY
}]
}
}
});