<?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 Labeling and Popup Question - 10.1 in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/labeling-and-popup-question-10-1/m-p/94239#M3477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jwnielsen&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was trying to get a mapservice to show the Area of a polygon in my map thru the REST url. In my Arcmap document i have the following setup to calculate the polygon area to Acres and to then calculate it to Sq Miles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;formatnumber( [SHAPE.STArea()]&amp;nbsp; /43560,2,-1,-1,-1) &amp;amp; " acres" &amp;amp; vbNewLine &amp;amp; formatnumber( [SHAPE.STArea()]&amp;nbsp; /27878400,2,-1,-1,-1) &amp;amp; " square miles"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In arcmap it displays correctly. Please see the attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16429[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i go to my map in flexviewer and zoom to the feature the labeling doesn't show up and sometimes the polygon themselves will disappear from the map. I know if i remove the above labeling from the polygons, they return but i really would like to have a label displaying on the screen. As these polygons can change quickly i can't constantly calculate geometries in another field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My other idea was to not label the polygons on the map but just calculate the Acres and Sq miles in the Popup for this mapservice. I can put in the {SHAPE.STArea()} in the popup and i can get that value to display in the popup but i want to perform some calculations to the number before it is displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16430[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to perform a calculation on a value in XML before it is displayed in the Popup window for that feature?&amp;nbsp; Or any other workarounds that might give me the results i'm looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2012 20:05:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-07-26T20:05:14Z</dc:date>
    <item>
      <title>Labeling and Popup Question - 10.1</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/labeling-and-popup-question-10-1/m-p/94239#M3477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jwnielsen&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was trying to get a mapservice to show the Area of a polygon in my map thru the REST url. In my Arcmap document i have the following setup to calculate the polygon area to Acres and to then calculate it to Sq Miles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;formatnumber( [SHAPE.STArea()]&amp;nbsp; /43560,2,-1,-1,-1) &amp;amp; " acres" &amp;amp; vbNewLine &amp;amp; formatnumber( [SHAPE.STArea()]&amp;nbsp; /27878400,2,-1,-1,-1) &amp;amp; " square miles"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In arcmap it displays correctly. Please see the attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16429[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i go to my map in flexviewer and zoom to the feature the labeling doesn't show up and sometimes the polygon themselves will disappear from the map. I know if i remove the above labeling from the polygons, they return but i really would like to have a label displaying on the screen. As these polygons can change quickly i can't constantly calculate geometries in another field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My other idea was to not label the polygons on the map but just calculate the Acres and Sq miles in the Popup for this mapservice. I can put in the {SHAPE.STArea()} in the popup and i can get that value to display in the popup but i want to perform some calculations to the number before it is displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16430[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to perform a calculation on a value in XML before it is displayed in the Popup window for that feature?&amp;nbsp; Or any other workarounds that might give me the results i'm looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 20:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/labeling-and-popup-question-10-1/m-p/94239#M3477</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-26T20:05:14Z</dc:date>
    </item>
  </channel>
</rss>

