<?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: Get rotation of map frame in arcade expression or how to rotate labels accordingly in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1033704#M38210</link>
    <description>&lt;P&gt;This does seem like a significant issue. Even if you could get the map rotation using Arcade (which I think would be possible), I don't see a place where the rotation can be defined in the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/text-formatting-tags.htm#ESRI_SECTION1_96294382914B4D659E5487960431214A" target="_self"&gt;text formatting tags&lt;/A&gt;. How are you using your rotation field on the labels? Perhaps I'm just not seeing the same setting.&lt;/P&gt;&lt;P&gt;It seems to me what's missing here are &lt;STRONG&gt;property connections&lt;/STRONG&gt; like we have in symbology.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1615039773307.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7745iCAFD0D2755C1B752/image-size/small?v=v2&amp;amp;px=200" role="button" title="jcarlson_0-1615039773307.png" alt="jcarlson_0-1615039773307.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H3&gt;Inelegant Workaround: Two Maps&lt;/H3&gt;&lt;P&gt;There &lt;EM&gt;is &lt;/EM&gt;a way around this for the time being.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a copy of your map.&lt;/LI&gt;&lt;LI&gt;Make all symbology transparent, and include your "straight" labels only.&lt;/LI&gt;&lt;LI&gt;Turn off the "rotate labels with map" setting&lt;/LI&gt;&lt;LI&gt;Add a second map frame to your layout, pointing to this map, and overlapping the first frame perfectly.&lt;/LI&gt;&lt;LI&gt;Constrain the second map frame to match the scale, extent, and rotation of the first.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1615040481763.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7746iA851A27B9FEF1FC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1615040481763.png" alt="jcarlson_1-1615040481763.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's not perfect, not even close, and odds are some of your labels are going to overlap. But short of doing your map series with python, it might be the closest thing.&lt;/P&gt;&lt;P&gt;Still, I'm going to add an Idea for label class property connections, if you want to upvote it when it shows up. It would be a major benefit to situations like this.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Mar 2021 14:25:38 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-03-06T14:25:38Z</dc:date>
    <item>
      <title>Get rotation of map frame in arcade expression or how to rotate labels accordingly</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1033675#M38206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a map with&amp;nbsp;data driven pages (Map series now?) in the Layout and several feature classes with different labels. All of the pages have different rotations defined by a rotation field in the controlling feature layer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have in practice two layers I care about:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Drillhole layer&lt;/STRONG&gt; with "bubbles" which should be rotated 0*deg in reference to the layout. (normal Reading)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Profile numbers&lt;/STRONG&gt; which should be rotated relative to the map north. These profile numbers have a rotation field which ensures them to be rotated correctly according to map north.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I thought I found a solution with the "Rotate point and polygon labels when map is rotated" in the label part of the map properties, however the effect is not desirable, as you can see in the figure:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndreasLorentzen_1-1615019543898.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7741i591F120177291A33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndreasLorentzen_1-1615019543898.png" alt="AndreasLorentzen_1-1615019543898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;After this defeat I tried for a while to find any solution in the Arcade environment to rotate some of the labels "back" to normal. I wanted to get an expression in arcade which gave me the rotation from the map frame. However, I have not found any way, mostly because the documentation on Arcade is limited, and I have yet to find any examples of what I can find with the $view or $layout part of arcade. I have read through a lot of the &lt;A href="https://github.com/Esri/arcade-expressions" target="_blank"&gt;GitHub examples&lt;/A&gt;, but not anything there either (as far as I found).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The crux here is that I can't edit, or convert the datasets, as they should be dynamic to a feature service of which I have no control over. Otherwise I could just create lines out of the points and use line labels.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;So, my question is as follows:&lt;/STRONG&gt;&lt;BR /&gt;Are there any method of either:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use the "Rotate point and polygon labels when map is rotated" option on only selected layers?&lt;/LI&gt;&lt;LI&gt;Use Arcade in a rotation field to access information (rotation) from the current map page?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, are there any documentation on what you can access with the $view in Arcade?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 08:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1033675#M38206</guid>
      <dc:creator>AndreasLorentzen</dc:creator>
      <dc:date>2021-03-06T08:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get rotation of map frame in arcade expression or how to rotate labels accordingly</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1033704#M38210</link>
      <description>&lt;P&gt;This does seem like a significant issue. Even if you could get the map rotation using Arcade (which I think would be possible), I don't see a place where the rotation can be defined in the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/text-formatting-tags.htm#ESRI_SECTION1_96294382914B4D659E5487960431214A" target="_self"&gt;text formatting tags&lt;/A&gt;. How are you using your rotation field on the labels? Perhaps I'm just not seeing the same setting.&lt;/P&gt;&lt;P&gt;It seems to me what's missing here are &lt;STRONG&gt;property connections&lt;/STRONG&gt; like we have in symbology.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1615039773307.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7745iCAFD0D2755C1B752/image-size/small?v=v2&amp;amp;px=200" role="button" title="jcarlson_0-1615039773307.png" alt="jcarlson_0-1615039773307.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H3&gt;Inelegant Workaround: Two Maps&lt;/H3&gt;&lt;P&gt;There &lt;EM&gt;is &lt;/EM&gt;a way around this for the time being.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a copy of your map.&lt;/LI&gt;&lt;LI&gt;Make all symbology transparent, and include your "straight" labels only.&lt;/LI&gt;&lt;LI&gt;Turn off the "rotate labels with map" setting&lt;/LI&gt;&lt;LI&gt;Add a second map frame to your layout, pointing to this map, and overlapping the first frame perfectly.&lt;/LI&gt;&lt;LI&gt;Constrain the second map frame to match the scale, extent, and rotation of the first.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1615040481763.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7746iA851A27B9FEF1FC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1615040481763.png" alt="jcarlson_1-1615040481763.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's not perfect, not even close, and odds are some of your labels are going to overlap. But short of doing your map series with python, it might be the closest thing.&lt;/P&gt;&lt;P&gt;Still, I'm going to add an Idea for label class property connections, if you want to upvote it when it shows up. It would be a major benefit to situations like this.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 14:25:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1033704#M38210</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-06T14:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get rotation of map frame in arcade expression or how to rotate labels accordingly</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1033833#M38225</link>
      <description>&lt;P&gt;I haven't thought of that solution with a copy of the original map. How ever it is not that elegant.&amp;nbsp;I don't think this will work well with many labels as it probably wont work in regard of overprinting and weight of labels.&lt;/P&gt;&lt;P&gt;A connection with properties is possible, however not with the map frames properties, however, would solve the problem.&lt;/P&gt;&lt;P&gt;Another thing that would solve the issue would be something similar to what you have in the format point symbol menu:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndreasLorentzen_0-1615188080434.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7783i88C1E6D96684033B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndreasLorentzen_0-1615188080434.png" alt="AndreasLorentzen_0-1615188080434.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 07:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1033833#M38225</guid>
      <dc:creator>AndreasLorentzen</dc:creator>
      <dc:date>2021-03-08T07:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get rotation of map frame in arcade expression or how to rotate labels accordingly</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1033911#M38240</link>
      <description>&lt;P&gt;Oh, that's an idea that I hadn't considered! Could you make one of the label classes a text symbol instead?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 14:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1033911#M38240</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-08T14:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get rotation of map frame in arcade expression or how to rotate labels accordingly</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1034820#M38335</link>
      <description>&lt;P&gt;I think the only working workaround is to convert the lables to annotations. This worked well for the time, however, I have to do it every time someone want a change in the input dataset. So not an optimal solution. Maybe if no-on knows about a solution with arcade in a couple of days, I'll just add another improvement idea to implement something.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 08:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1034820#M38335</guid>
      <dc:creator>AndreasLorentzen</dc:creator>
      <dc:date>2021-03-10T08:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get rotation of map frame in arcade expression or how to rotate labels accordingly</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1034898#M38344</link>
      <description>&lt;P&gt;I added &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/property-connections-for-label-classes/idi-p/1033707/highlight/true" target="_self"&gt;an Idea&lt;/A&gt; related to this if you want to give it an upvote. It does seem odd that labels won't connect to feature attributes outside of the font settings.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 14:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-rotation-of-map-frame-in-arcade-expression-or/m-p/1034898#M38344</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-10T14:15:47Z</dc:date>
    </item>
  </channel>
</rss>

