<?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 Label is not working for dynamic feature layer in projected coordinate system in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-is-not-working-for-dynamic-feature-layer-in/m-p/194362#M17932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below code is working for geographic coordinate system(Both base map and operational layers are in GCS) . But&amp;nbsp;when i switch to Projected coordinate system (both basemap and operational layer) the label is not working but rendering is happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The temporal layer i am creating dynamically , not from the mapservice .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Renderer : function (){&lt;BR /&gt; &lt;BR /&gt; var statesColor = new Color("#060606");&lt;BR /&gt; var statesLabel = new TextSymbol().setColor(statesColor);&lt;BR /&gt; statesLabel.font.setSize("14pt");&lt;BR /&gt; statesLabel.font.setFamily("arial"); &lt;BR /&gt; var json = {&lt;BR /&gt; "labelExpressionInfo": {"value": "{POPULATION}"}&lt;BR /&gt; }; &lt;BR /&gt; var labelClass = new LabelClass(json);&lt;BR /&gt; labelClass.symbol = statesLabel; &lt;BR /&gt; this.temporalLayer.setLabelingInfo([ labelClass ]);&lt;BR /&gt; this.map.addLayer(this.temporalLayer);&lt;BR /&gt; smartMapping.createClassedColorRenderer({&lt;BR /&gt; layer: this.temporalLayer,&lt;BR /&gt; field: "POPULATION",&lt;BR /&gt; basemap: "streets",&lt;BR /&gt; classificationMethod: this.checkClassificationType.value,&lt;BR /&gt; numClasses: this.checkClassificationNumber.value&lt;BR /&gt; }).then(lang.hitch(this, function (response) {&lt;BR /&gt; var colorArray = this.interpolateColors("rgb(" + this.fromColor.color.r + "," + this.fromColor.color.g + "," + this.fromColor.color.b +")", "rgb(" + this.toColor.color.r + "," + this.toColor.color.g + "," + this.toColor.color.b + ")", this.checkClassificationNumber.value);&lt;BR /&gt; for (var i = 0; i &amp;lt; colorArray.length ; i++) {&lt;BR /&gt; response.renderer.infos&lt;I&gt;.symbol.color.r = colorArray&lt;I&gt;[0];&lt;BR /&gt; response.renderer.infos&lt;I&gt;.symbol.color.g = colorArray&lt;I&gt;[1];&lt;BR /&gt; response.renderer.infos&lt;I&gt;.symbol.color.b = colorArray&lt;I&gt;[2];&lt;BR /&gt; }&lt;BR /&gt; this.temporalLayer.setRenderer(response.renderer);&lt;BR /&gt; this.temporalLayer.redraw(); &lt;BR /&gt; }));&lt;BR /&gt; },&lt;BR /&gt; &lt;BR /&gt; interpolateColors : function (color1, color2, steps) {&lt;BR /&gt; var stepFactor = 1 / (steps - 1),&lt;BR /&gt; interpolatedColorArray = [];&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;color1 = color1.match(/\d+/g).map(Number);&lt;BR /&gt; color2 = color2.match(/\d+/g).map(Number);&lt;/P&gt;&lt;P&gt;for (var i = 0; i &amp;lt; steps; i++) {&lt;BR /&gt; interpolatedColorArray.push(this.interpolateColor(color1, color2, stepFactor * i));&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;return interpolatedColorArray;&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;interpolateColor:function (color1, color2, factor) {&lt;BR /&gt; if (arguments.length &amp;lt; 3) {&lt;BR /&gt; factor = 0.5;&lt;BR /&gt; }&lt;BR /&gt; var result = color1.slice();&lt;BR /&gt; for (var i = 0; i &amp;lt; 3; i++) {&lt;BR /&gt; result&lt;I&gt; = Math.round(result&lt;I&gt; + factor * (color2&lt;I&gt; - color1&lt;I&gt;));&lt;BR /&gt; }&lt;BR /&gt; return result;&lt;BR /&gt; },&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2017 12:42:57 GMT</pubDate>
    <dc:creator>mohannainar1</dc:creator>
    <dc:date>2017-10-06T12:42:57Z</dc:date>
    <item>
      <title>Label is not working for dynamic feature layer in projected coordinate system</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-is-not-working-for-dynamic-feature-layer-in/m-p/194362#M17932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below code is working for geographic coordinate system(Both base map and operational layers are in GCS) . But&amp;nbsp;when i switch to Projected coordinate system (both basemap and operational layer) the label is not working but rendering is happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The temporal layer i am creating dynamically , not from the mapservice .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Renderer : function (){&lt;BR /&gt; &lt;BR /&gt; var statesColor = new Color("#060606");&lt;BR /&gt; var statesLabel = new TextSymbol().setColor(statesColor);&lt;BR /&gt; statesLabel.font.setSize("14pt");&lt;BR /&gt; statesLabel.font.setFamily("arial"); &lt;BR /&gt; var json = {&lt;BR /&gt; "labelExpressionInfo": {"value": "{POPULATION}"}&lt;BR /&gt; }; &lt;BR /&gt; var labelClass = new LabelClass(json);&lt;BR /&gt; labelClass.symbol = statesLabel; &lt;BR /&gt; this.temporalLayer.setLabelingInfo([ labelClass ]);&lt;BR /&gt; this.map.addLayer(this.temporalLayer);&lt;BR /&gt; smartMapping.createClassedColorRenderer({&lt;BR /&gt; layer: this.temporalLayer,&lt;BR /&gt; field: "POPULATION",&lt;BR /&gt; basemap: "streets",&lt;BR /&gt; classificationMethod: this.checkClassificationType.value,&lt;BR /&gt; numClasses: this.checkClassificationNumber.value&lt;BR /&gt; }).then(lang.hitch(this, function (response) {&lt;BR /&gt; var colorArray = this.interpolateColors("rgb(" + this.fromColor.color.r + "," + this.fromColor.color.g + "," + this.fromColor.color.b +")", "rgb(" + this.toColor.color.r + "," + this.toColor.color.g + "," + this.toColor.color.b + ")", this.checkClassificationNumber.value);&lt;BR /&gt; for (var i = 0; i &amp;lt; colorArray.length ; i++) {&lt;BR /&gt; response.renderer.infos&lt;I&gt;.symbol.color.r = colorArray&lt;I&gt;[0];&lt;BR /&gt; response.renderer.infos&lt;I&gt;.symbol.color.g = colorArray&lt;I&gt;[1];&lt;BR /&gt; response.renderer.infos&lt;I&gt;.symbol.color.b = colorArray&lt;I&gt;[2];&lt;BR /&gt; }&lt;BR /&gt; this.temporalLayer.setRenderer(response.renderer);&lt;BR /&gt; this.temporalLayer.redraw(); &lt;BR /&gt; }));&lt;BR /&gt; },&lt;BR /&gt; &lt;BR /&gt; interpolateColors : function (color1, color2, steps) {&lt;BR /&gt; var stepFactor = 1 / (steps - 1),&lt;BR /&gt; interpolatedColorArray = [];&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;color1 = color1.match(/\d+/g).map(Number);&lt;BR /&gt; color2 = color2.match(/\d+/g).map(Number);&lt;/P&gt;&lt;P&gt;for (var i = 0; i &amp;lt; steps; i++) {&lt;BR /&gt; interpolatedColorArray.push(this.interpolateColor(color1, color2, stepFactor * i));&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;return interpolatedColorArray;&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;interpolateColor:function (color1, color2, factor) {&lt;BR /&gt; if (arguments.length &amp;lt; 3) {&lt;BR /&gt; factor = 0.5;&lt;BR /&gt; }&lt;BR /&gt; var result = color1.slice();&lt;BR /&gt; for (var i = 0; i &amp;lt; 3; i++) {&lt;BR /&gt; result&lt;I&gt; = Math.round(result&lt;I&gt; + factor * (color2&lt;I&gt; - color1&lt;I&gt;));&lt;BR /&gt; }&lt;BR /&gt; return result;&lt;BR /&gt; },&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 12:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-is-not-working-for-dynamic-feature-layer-in/m-p/194362#M17932</guid>
      <dc:creator>mohannainar1</dc:creator>
      <dc:date>2017-10-06T12:42:57Z</dc:date>
    </item>
  </channel>
</rss>

