<?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: Map Series Background for area around selected polygon extent in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/map-series-background-for-area-around-selected/m-p/1247801#M64210</link>
    <description>&lt;P&gt;Duplicate the layer containing the polygons with the map sections. Symbolise one of these layers as the active section should look (e.g. only a black frame and without fill colour). The second layer is symbolised as the neighbouring sections should look (e.g. with a grey frame and light grey or white fill colour with 50% transparency, so that the map image behind it is less dominant).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;While iterating through the FeatureClass with the map sections, you continuously update a DefinitionQuery on both layers: On one layer so that only the current polygon feature is loaded, on the other so that all except the current polygon features are loaded.&lt;/P&gt;&lt;P&gt;Unfortunately I don't have a corresponding script in Python 3 and with arcpy.mp-Package at hand, but here is an example in Python 2, i think the principle stays the same in APRO/Py3:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;with arcpy.da.SearchCursor(fcMapextent, ["Sheet_Nr", "SHAPE@"]) as cursor:
    for row in cursor:
        # config. definition queries
        queryActive = "Sheet_Nr =  '"  + row[0] + "'"
        queryInactive = "Sheet_Nr &amp;lt;&amp;gt;  '"  + row[0] + "'"

        # config. layers
        lyrActive = arcpy.mapping.ListLayers(mxd, "Map_Extent_active")[0]
        lyrInactive = arcpy.mapping.ListLayers(mxd, "Map_Extent_inactive")[0]
        lyrActive.definitionQuery = queryActive
        lyrInactive.definitionQuery = queryInactive

        # pan and scale
        df.extent = row[1].extent
        df.scale = 2000

        # export
        arcpy.RefreshTOC
        arcpy.RefreshActiveView
        arcpy.mapping.ExportToPNG(mxd,path + r"\Output\\" + "Sheet_" + row[0] + ".png", resolution = 300)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry that I can't provide a finished script for Arcgis Pro yet, but I hope this helps to at least get the idea.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 20:34:01 GMT</pubDate>
    <dc:creator>RMaron</dc:creator>
    <dc:date>2023-01-12T20:34:01Z</dc:date>
    <item>
      <title>Map Series Background for area around selected polygon extent</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/map-series-background-for-area-around-selected/m-p/1247740#M64206</link>
      <description>&lt;P&gt;I'm attempting to create a map series that references a polygon layer as the extent. I would like the area around the current page's polygon to have a gray tint over it so that the current polygon being displayed is the main focus. Any suggestions on how to do this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 19:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/map-series-background-for-area-around-selected/m-p/1247740#M64206</guid>
      <dc:creator>LaurenCammack01</dc:creator>
      <dc:date>2023-01-12T19:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Map Series Background for area around selected polygon extent</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/map-series-background-for-area-around-selected/m-p/1247801#M64210</link>
      <description>&lt;P&gt;Duplicate the layer containing the polygons with the map sections. Symbolise one of these layers as the active section should look (e.g. only a black frame and without fill colour). The second layer is symbolised as the neighbouring sections should look (e.g. with a grey frame and light grey or white fill colour with 50% transparency, so that the map image behind it is less dominant).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;While iterating through the FeatureClass with the map sections, you continuously update a DefinitionQuery on both layers: On one layer so that only the current polygon feature is loaded, on the other so that all except the current polygon features are loaded.&lt;/P&gt;&lt;P&gt;Unfortunately I don't have a corresponding script in Python 3 and with arcpy.mp-Package at hand, but here is an example in Python 2, i think the principle stays the same in APRO/Py3:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;with arcpy.da.SearchCursor(fcMapextent, ["Sheet_Nr", "SHAPE@"]) as cursor:
    for row in cursor:
        # config. definition queries
        queryActive = "Sheet_Nr =  '"  + row[0] + "'"
        queryInactive = "Sheet_Nr &amp;lt;&amp;gt;  '"  + row[0] + "'"

        # config. layers
        lyrActive = arcpy.mapping.ListLayers(mxd, "Map_Extent_active")[0]
        lyrInactive = arcpy.mapping.ListLayers(mxd, "Map_Extent_inactive")[0]
        lyrActive.definitionQuery = queryActive
        lyrInactive.definitionQuery = queryInactive

        # pan and scale
        df.extent = row[1].extent
        df.scale = 2000

        # export
        arcpy.RefreshTOC
        arcpy.RefreshActiveView
        arcpy.mapping.ExportToPNG(mxd,path + r"\Output\\" + "Sheet_" + row[0] + ".png", resolution = 300)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry that I can't provide a finished script for Arcgis Pro yet, but I hope this helps to at least get the idea.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 20:34:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/map-series-background-for-area-around-selected/m-p/1247801#M64210</guid>
      <dc:creator>RMaron</dc:creator>
      <dc:date>2023-01-12T20:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Map Series Background for area around selected polygon extent</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/map-series-background-for-area-around-selected/m-p/1247895#M64219</link>
      <description>&lt;P&gt;Clip Layers might do it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/properties/clip-layers-in-a-map.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/properties/clip-layers-in-a-map.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 23:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/map-series-background-for-area-around-selected/m-p/1247895#M64219</guid>
      <dc:creator>BarryNorthey</dc:creator>
      <dc:date>2023-01-12T23:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Map Series Background for area around selected polygon extent</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/map-series-background-for-area-around-selected/m-p/1247897#M64220</link>
      <description>&lt;P&gt;You can use page queries to do this! A page query will update for each page in the map series. Any layer can have a page query as long as the layer has an attribute the corresponds to the name of the map series page. With a page query you can choose to show only the data that matches that attribute or the data that doesn't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I had a map series going through all the counties in a state, I could add a layer that symbolizes all counties with a gray tint. Then I apply a page query to that layer to draw only the data that doesn't match the map series page name. This draws the tint over every polygon except the one for the current map series page, highlighting it.&lt;/P&gt;&lt;P&gt;You can learn more about page queries here:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/layouts/page-queries.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/layouts/page-queries.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AubriKinghorn_0-1673565877552.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60346iB660E75F7FFEE2F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AubriKinghorn_0-1673565877552.png" alt="AubriKinghorn_0-1673565877552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 23:24:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/map-series-background-for-area-around-selected/m-p/1247897#M64220</guid>
      <dc:creator>AubriOtis</dc:creator>
      <dc:date>2023-01-12T23:24:43Z</dc:date>
    </item>
  </channel>
</rss>

