<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CIMTextSymbol display error in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cimtextsymbol-display-error/m-p/1669586#M87924</link>
    <description>&lt;P&gt;I'm using ArcGIS js sdk to display map, allow user to write text and edit it's properties (font name, font size, color,...).&lt;/P&gt;&lt;P&gt;I'm using FeatureLayer with CIMTextSymbol to display text, use visualVariables to make it scales when user zoom in/out.&lt;/P&gt;&lt;P&gt;But when font size is large (~40), or when zoom in, text becomes blurry and disappear some pieces, and with long text, it auto create new line, and I cannot find something like "lineWidth" or "textWrap" property. I tried normal TextSymbol but it gives same result.&amp;nbsp;I'm using Js SDK v4.38.&lt;/P&gt;&lt;P&gt;Does it error and how to fix it? And&amp;nbsp;what is the best way to display and edit text in arcgis js sdk? Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-12-02 144013.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144621iE75492570065CEB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-12-02 144013.png" alt="Screenshot 2025-12-02 144013.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my symbol code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.cimSymbol = new CIMSymbol({
	data: {
		type: 'CIMSymbolReference',
		primitiveOverrides: [
			{
				type: 'CIMPrimitiveOverride',
				primitiveName: 'textStringOverride',
				propertyName: 'TextString',
				valueExpressionInfo: {
					type: 'CIMExpressionInfo',
					returnType: 'Default',
					expression: '$feature.TextString'
				}
			}
		],
		symbol: {
			type: 'CIMPointSymbol',
			symbolLayers: [
				{
					type: 'CIMVectorMarker',
					enable: true,
					anchorPointUnits: 'Relative',
					size: 40,
					anchorPoint: {
						x: 0,
						y: 0
					},
					frame: { xmin: -5, xmax: 5, ymin: -5, ymax: 5 },
					markerGraphics: [
						{
							type: 'CIMMarkerGraphic',
							primitiveName: 'textStringOverride',
							geometry: { x: 0, y: 0 },
							symbol: {
								type: 'CIMTextSymbol',
								fontFamilyName: 'Arial',
								fontStyleName: 'Regular',
								height: 40,
								horizontalAlignment: 'Center',
								verticalAlignment: 'Center',
								haloSize: 1,
								angle: 0,
								underline: false,
								symbol: {
									type: "CIMPolygonSymbol",
									symbolLayers: [
										{
											type: "CIMSolidFill",
											enable: true,
											color: [0,0,0,255]
										}
									],
								},
							}
						}
					]
				}
			]
		}
	}
});&lt;/LI-CODE&gt;&lt;P&gt;And here is my feature layer:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var renderer = new UniqueValueRenderer({
	field: Map2DParams.RenderField,
	defaultSymbol: {
		type: 'text',
		text: '1',
		color: [0, 0, 0, 255],
		font: {
			family: 'Arial',
			style: 'normal',
		},
		horizontalAlignment: 'center',
		verticalAlignment: 'middle',
	},
	visualVariables: [
		new SizeVariable({
			field: 'FontSize',
			valueUnit: 'kilometers',
			valueExpression: `return $feature.FontSize;`,
		})
	]
})
lineLayer = new FeatureLayer({
	id: 'Text_' + mapId,
	source: [],
	fields: Map2DParams.textFields,
	geometryType: 'point',
	objectIdField: 'ObjectID',
	spatialReference: new SpatialReference({ wkid: wkid }),
	renderer: renderer,
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2025 07:56:00 GMT</pubDate>
    <dc:creator>MinhHoangf</dc:creator>
    <dc:date>2025-12-02T07:56:00Z</dc:date>
    <item>
      <title>CIMTextSymbol display error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cimtextsymbol-display-error/m-p/1669586#M87924</link>
      <description>&lt;P&gt;I'm using ArcGIS js sdk to display map, allow user to write text and edit it's properties (font name, font size, color,...).&lt;/P&gt;&lt;P&gt;I'm using FeatureLayer with CIMTextSymbol to display text, use visualVariables to make it scales when user zoom in/out.&lt;/P&gt;&lt;P&gt;But when font size is large (~40), or when zoom in, text becomes blurry and disappear some pieces, and with long text, it auto create new line, and I cannot find something like "lineWidth" or "textWrap" property. I tried normal TextSymbol but it gives same result.&amp;nbsp;I'm using Js SDK v4.38.&lt;/P&gt;&lt;P&gt;Does it error and how to fix it? And&amp;nbsp;what is the best way to display and edit text in arcgis js sdk? Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-12-02 144013.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144621iE75492570065CEB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-12-02 144013.png" alt="Screenshot 2025-12-02 144013.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my symbol code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.cimSymbol = new CIMSymbol({
	data: {
		type: 'CIMSymbolReference',
		primitiveOverrides: [
			{
				type: 'CIMPrimitiveOverride',
				primitiveName: 'textStringOverride',
				propertyName: 'TextString',
				valueExpressionInfo: {
					type: 'CIMExpressionInfo',
					returnType: 'Default',
					expression: '$feature.TextString'
				}
			}
		],
		symbol: {
			type: 'CIMPointSymbol',
			symbolLayers: [
				{
					type: 'CIMVectorMarker',
					enable: true,
					anchorPointUnits: 'Relative',
					size: 40,
					anchorPoint: {
						x: 0,
						y: 0
					},
					frame: { xmin: -5, xmax: 5, ymin: -5, ymax: 5 },
					markerGraphics: [
						{
							type: 'CIMMarkerGraphic',
							primitiveName: 'textStringOverride',
							geometry: { x: 0, y: 0 },
							symbol: {
								type: 'CIMTextSymbol',
								fontFamilyName: 'Arial',
								fontStyleName: 'Regular',
								height: 40,
								horizontalAlignment: 'Center',
								verticalAlignment: 'Center',
								haloSize: 1,
								angle: 0,
								underline: false,
								symbol: {
									type: "CIMPolygonSymbol",
									symbolLayers: [
										{
											type: "CIMSolidFill",
											enable: true,
											color: [0,0,0,255]
										}
									],
								},
							}
						}
					]
				}
			]
		}
	}
});&lt;/LI-CODE&gt;&lt;P&gt;And here is my feature layer:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var renderer = new UniqueValueRenderer({
	field: Map2DParams.RenderField,
	defaultSymbol: {
		type: 'text',
		text: '1',
		color: [0, 0, 0, 255],
		font: {
			family: 'Arial',
			style: 'normal',
		},
		horizontalAlignment: 'center',
		verticalAlignment: 'middle',
	},
	visualVariables: [
		new SizeVariable({
			field: 'FontSize',
			valueUnit: 'kilometers',
			valueExpression: `return $feature.FontSize;`,
		})
	]
})
lineLayer = new FeatureLayer({
	id: 'Text_' + mapId,
	source: [],
	fields: Map2DParams.textFields,
	geometryType: 'point',
	objectIdField: 'ObjectID',
	spatialReference: new SpatialReference({ wkid: wkid }),
	renderer: renderer,
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 07:56:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cimtextsymbol-display-error/m-p/1669586#M87924</guid>
      <dc:creator>MinhHoangf</dc:creator>
      <dc:date>2025-12-02T07:56:00Z</dc:date>
    </item>
  </channel>
</rss>

