<?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: Point Label Rotation in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/point-label-rotation/m-p/632962#M7786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you working with JSON to create label definitions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example fragment of JSON for labelAngleInfo an angleExpressionInfo that uses Arcade to define an angle expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;"labelAngleInfo": {&lt;BR /&gt; "angleExpressionInfo": {&lt;BR /&gt; "expression": "if($feature.type == 11, $feature.SITE_ANGLE, 90-2*$feature['other angle'])",&lt;BR /&gt; "title": "Geology dir (site)"&lt;BR /&gt; },&lt;BR /&gt; "rotationType": "arithmetic"&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Arcade angle expression&amp;nbsp;must evaluate to a&amp;nbsp;number (angle in degrees) e.g.&lt;BR /&gt;- A single fieldname would be represented as $feature.SITE_ANGLE&lt;BR /&gt;- A single angle for all features would be represented as 25.5&lt;BR /&gt;- A more complex example might be if($feature.type == 11, $feature.SITE_ANGLE, 90-2*$feature["other angle"])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This capability may not have made it into all parts of the platform yet, but&amp;nbsp;it should be supported in ArcGIS Runtime (e.g. mobile map packages from Pro / service).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2019 23:57:41 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2019-05-22T23:57:41Z</dc:date>
    <item>
      <title>Point Label Rotation</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/point-label-rotation/m-p/632961#M7785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a point feature layer that I've added to the map from an offline SQLite geodatabase generated from a feature service.&amp;nbsp; I've set up labeling on the layer with the placement properties set to use the value from a rotation field to rotate the text.&amp;nbsp; The points are rotating fine from that same field, but the point labels stay horizontal.&amp;nbsp; Is this something 100.5 API does not support or am I missing something here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 23:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/point-label-rotation/m-p/632961#M7785</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2019-05-22T23:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Point Label Rotation</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/point-label-rotation/m-p/632962#M7786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you working with JSON to create label definitions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example fragment of JSON for labelAngleInfo an angleExpressionInfo that uses Arcade to define an angle expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;"labelAngleInfo": {&lt;BR /&gt; "angleExpressionInfo": {&lt;BR /&gt; "expression": "if($feature.type == 11, $feature.SITE_ANGLE, 90-2*$feature['other angle'])",&lt;BR /&gt; "title": "Geology dir (site)"&lt;BR /&gt; },&lt;BR /&gt; "rotationType": "arithmetic"&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Arcade angle expression&amp;nbsp;must evaluate to a&amp;nbsp;number (angle in degrees) e.g.&lt;BR /&gt;- A single fieldname would be represented as $feature.SITE_ANGLE&lt;BR /&gt;- A single angle for all features would be represented as 25.5&lt;BR /&gt;- A more complex example might be if($feature.type == 11, $feature.SITE_ANGLE, 90-2*$feature["other angle"])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This capability may not have made it into all parts of the platform yet, but&amp;nbsp;it should be supported in ArcGIS Runtime (e.g. mobile map packages from Pro / service).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 23:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/point-label-rotation/m-p/632962#M7786</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2019-05-22T23:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Point Label Rotation</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/point-label-rotation/m-p/632963#M7787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback Michael.&amp;nbsp; We are still using ArcMap MXDs as our source for feature services.&amp;nbsp; We have customers that do not have portals federated with ArcGIS Server so we need to support publishing directly to ArcGIS Server for our customers who do not have that architecture.&amp;nbsp; Lowest common denominator type of thing.&amp;nbsp; We are also not generating mobile map packages from our feature services - just SQLites.&amp;nbsp; So I think I'm out of luck on this for now then ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 21:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/point-label-rotation/m-p/632963#M7787</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2019-05-23T21:20:26Z</dc:date>
    </item>
  </channel>
</rss>

