<?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: Set label width/word wrap when using text balloons in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742583#M8016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using label expression to break up the resulting text based on some character width. Following is an example script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def FindLabel ( [myField] ):
&amp;nbsp; result = ""
&amp;nbsp; counter = 1
&amp;nbsp; for char in [myField]:
&amp;nbsp;&amp;nbsp;&amp;nbsp; result = result + char
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( counter % 5 == 0):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = result + '\n'
&amp;nbsp;&amp;nbsp;&amp;nbsp; counter = counter + 1
&amp;nbsp; return result&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note line 6, in this snippet character width is 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 07:36:15 GMT</pubDate>
    <dc:creator>MahtabAlam1</dc:creator>
    <dc:date>2021-12-12T07:36:15Z</dc:date>
    <item>
      <title>Set label width/word wrap when using text balloons</title>
      <link>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742582#M8015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not been able to find a way to specify maximum width of text balloons that are generated by labeling.&amp;nbsp; The work-around I'm currently implementing is converting the labels to annotation, then manually placing carriage returns in each balloon to approximate the ideal balloon width.&amp;nbsp; As you might imagine, this is very time consuming.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS&amp;nbsp; I'm using the Maplex label engine in ArcMap 10.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 21:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742582#M8015</guid>
      <dc:creator>BenColeman1</dc:creator>
      <dc:date>2015-01-21T21:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set label width/word wrap when using text balloons</title>
      <link>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742583#M8016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using label expression to break up the resulting text based on some character width. Following is an example script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def FindLabel ( [myField] ):
&amp;nbsp; result = ""
&amp;nbsp; counter = 1
&amp;nbsp; for char in [myField]:
&amp;nbsp;&amp;nbsp;&amp;nbsp; result = result + char
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( counter % 5 == 0):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = result + '\n'
&amp;nbsp;&amp;nbsp;&amp;nbsp; counter = counter + 1
&amp;nbsp; return result&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note line 6, in this snippet character width is 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:36:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742583#M8016</guid>
      <dc:creator>MahtabAlam1</dc:creator>
      <dc:date>2021-12-12T07:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set label width/word wrap when using text balloons</title>
      <link>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742584#M8017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maplex has a stack labels option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/map/working-with-text/stacking-labels-about-stacking-labels.htm" title="http://desktop.arcgis.com/en/desktop/latest/map/working-with-text/stacking-labels-about-stacking-labels.htm"&gt;About stacking labels—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can restrict the number of characters per line and also the number of lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wendy &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 23:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742584#M8017</guid>
      <dc:creator>WendyHarrison</dc:creator>
      <dc:date>2015-01-21T23:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set label width/word wrap when using text balloons</title>
      <link>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742585#M8018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I needed.&amp;nbsp; I had it set to stack labels, but because my label expression contained five `VbCrLf`s, the label was exceeding the default maximum number of lines allowed (3) in every case.&amp;nbsp; I upped the maximum to 10 lines and that did the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 23:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742585#M8018</guid>
      <dc:creator>BenColeman1</dc:creator>
      <dc:date>2015-01-21T23:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set label width/word wrap when using text balloons</title>
      <link>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742586#M8019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see the reason you might do this, but doesn't it sometimes arbitrarily cut words across multiple lines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 23:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742586#M8019</guid>
      <dc:creator>BenColeman1</dc:creator>
      <dc:date>2015-01-21T23:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set label width/word wrap when using text balloons</title>
      <link>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742587#M8020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's just an example and can be modified to make sure it doesn't split words. I would stick to label stacking as as a better approach unless I need complex text parsing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 14:50:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/set-label-width-word-wrap-when-using-text-balloons/m-p/742587#M8020</guid>
      <dc:creator>MahtabAlam1</dc:creator>
      <dc:date>2015-01-22T14:50:55Z</dc:date>
    </item>
  </channel>
</rss>

