<?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 Re: Hi,  in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123714#M5932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The workaround that was mentioned does not apply for labels. There is some advancement since the playground will now show the multi line result, however this will not be applied for the labels in the map:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/390654_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is duplicate the layer and and use the label positioning to have two&amp;nbsp;lines (with 3 lines it will not fit and it will not show one of the labels).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So copy the layer and use different alignments for the labels of each layer:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/390655_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&amp;nbsp;and&amp;nbsp;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/390659_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to go from this&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/390660_pastedImage_4.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;to this&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/390661_pastedImage_5.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2017 02:15:19 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2017-12-13T02:15:19Z</dc:date>
    <item>
      <title>Multi-line labels</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123711#M5929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how to label a feature class with multiple lines in ArcGIS Online? On Desktop, labels can be done via:&lt;/P&gt;&lt;P&gt;Zip Code&lt;/P&gt;&lt;P&gt;City Name&amp;nbsp;&lt;/P&gt;&lt;P&gt;Population&amp;nbsp;&lt;/P&gt;&lt;P&gt;... I am hoping to do the same with ArcGIS Online.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 21:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123711#M5929</guid>
      <dc:creator>deleted-user-P-Gckloxqib2</dc:creator>
      <dc:date>2017-12-12T21:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123712#M5930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunnie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a feature layer, you can do it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Expand the layer in the table of contents and click on the three dots:&amp;nbsp;&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/390633_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/LI&gt;&lt;LI&gt;In the menu, click Create Labels - if you don't see this it's probably because you are working with a map image layer or some other type of layer that does not allow you to create labels based on the feature data&lt;/LI&gt;&lt;LI&gt;In the text drop-down, choose New Expression (at the bottom of the list)&lt;/LI&gt;&lt;LI&gt;In the expression window, mix and match fields and String elements to create your perfect multi-field label expression:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/390634_pastedImage_2.png" style="width: 485px; height: 140px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that these expressions are built using&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/" title="https://developers.arcgis.com/arcade/"&gt;ArcGIS Arcade&lt;/A&gt;. Plenty of help docs exist to help you become an expert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 21:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123712#M5930</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2017-12-12T21:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123713#M5931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, since Arcade doesn't support NewLine in the map viewer or template apps, you can't put them on separate lines. However, there does appear to be a workaround as noted in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/187776"&gt;Arcade Text Constant for TextFormatting.NewLine is adding space instead of new line&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 22:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123713#M5931</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2017-12-12T22:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123714#M5932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The workaround that was mentioned does not apply for labels. There is some advancement since the playground will now show the multi line result, however this will not be applied for the labels in the map:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/390654_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is duplicate the layer and and use the label positioning to have two&amp;nbsp;lines (with 3 lines it will not fit and it will not show one of the labels).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So copy the layer and use different alignments for the labels of each layer:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/390655_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&amp;nbsp;and&amp;nbsp;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/390659_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to go from this&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/390660_pastedImage_4.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;to this&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/390661_pastedImage_5.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 02:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123714#M5932</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-13T02:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line labels</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123715#M5933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like there is only the option to determine label placement for points and lines, not for polygons. Any suggested workarounds for polygons?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 21:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123715#M5933</guid>
      <dc:creator>SarahAnderson1</dc:creator>
      <dc:date>2018-05-10T21:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line labels</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123716#M5934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create label point for the polygons and label those, but that would be a complex way to achieve something that should be so easy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 09:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123716#M5934</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-05-14T09:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line labels</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123717#M5935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas as to how to get this Expression to result in a double line label?&lt;/P&gt;&lt;P&gt;I copied exactly what was above in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;xander_bakker&lt;/A&gt;‌'s comment and am not having the same results, as you can see in the "Results" tab, it's only staying a single line.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/432997_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 13:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123717#M5935</guid>
      <dc:creator>KamillePreto</dc:creator>
      <dc:date>2019-01-11T13:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line labels</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123718#M5936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this moment it is not possible to create a multi-line label since the TextFormatting.NewLine is not supported in the label of the web map. Later this year there will be a rewrite with the new API of the map viewer and that will enable multi-line labels. (&lt;EM&gt;Not sure though as to why the result is shown on a single line in the Arcade window&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example what I did to get the "multiline label" was duplicating the layer and define two different alignments for each layer, the first line in the first layer using top and the second line based on the second layer using the bottom alignment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 13:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123718#M5936</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-01-11T13:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line labels</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123719#M5937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see! That makes sense.&lt;/P&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 13:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123719#M5937</guid>
      <dc:creator>KamillePreto</dc:creator>
      <dc:date>2019-01-11T13:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line labels</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123720#M5938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Later this year there will be a rewrite...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forgive&amp;nbsp;my somewhat off-topic question, but does this include the 4.x Javascript API?&amp;nbsp; I'm not clear if the JS API 4 relates directly to the "map viewer API". In other words, will MapImageLayer eventually support&amp;nbsp;Arcade expressions (and therefore&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;TextFormatting.NewLine)?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Currently the LabelClass&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpressionInfo"&gt;labelExpressionInfo &lt;/A&gt;: { expression: .... } is only supported through FeatureLayers but I really need it to be available through MapImageLayer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 19:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123720#M5938</guid>
      <dc:creator>Andy_Morgan</dc:creator>
      <dc:date>2019-08-29T19:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line labels</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123721#M5939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/347656"&gt;Andy Morgan&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MapViewer of ArcGIS Online is currently based on the 3.x JavaScript API and in the rewrite will take advantage of the features which are part of the 4.x JavaScript API. The NewLine is already in 3.x supported in the pop-ups but with the 4.x API will also be supported in the labels.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know if there will be support for the MapImageLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Sep 2019 16:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123721#M5939</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-09-01T16:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line labels</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123722#M5940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.esri.com/migrated-users/3100" target="_blank"&gt;Xander Bakker&lt;/A&gt;‌ pointed out - this works in&amp;nbsp;&lt;EM&gt;ArcGIS API 4.x &lt;/EM&gt;related products&lt;EM&gt;&amp;nbsp;-&amp;nbsp;&lt;A href="https://community.esri.com/ideas/15261" target="_blank"&gt;https://community.esri.com/ideas/15261&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But, if folks are still using &lt;EM&gt;ArcGIS API 3.x apps&lt;/EM&gt; &lt;EM&gt;(e.g. Operations Dashboard)&lt;/EM&gt; - this functionality wouldn't work - as stated in the&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/constants/#textformatting.newline" rel="nofollow noopener noreferrer" target="_blank"&gt;Arcade Documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;An interim solution would be to - pass a HTML tag for line breaks instead -&amp;nbsp;&lt;STRONG&gt;&amp;lt;br /&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;{expression/expr0} + &lt;SPAN style="color: #008000;"&gt;"&amp;lt;br /&amp;gt;"&lt;/SPAN&gt; +&amp;nbsp;{expression/expr1}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will cause any&amp;nbsp;&lt;EM&gt;4.x -&amp;nbsp;&lt;/EM&gt;apps and maps to look horrible, but will do the trick for &lt;EM&gt;3.x&lt;/EM&gt; related products.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multi-line-labels/m-p/123722#M5940</guid>
      <dc:creator>GeeFernando</dc:creator>
      <dc:date>2021-06-22T08:21:16Z</dc:date>
    </item>
  </channel>
</rss>

