<?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: Data Driven Pages - show legend items only if they are in the map extent in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/data-driven-pages-show-legend-items-only-if-they/m-p/712082#M7703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not all in one example but here are two samples that should get you going:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 4th sample in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataFrame/00s300000003000000/"&gt;DataFrame&lt;/A&gt;&lt;SPAN&gt; class help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/AddLayer/00s300000025000000/"&gt;AddLayer&lt;/A&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/RemoveLayer/00s300000039000000/"&gt;RemoveLayer&lt;/A&gt;&lt;SPAN&gt; help samples&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If all your layers are already in the MXD, then use the first sample to see if they intersect with the data frame.&amp;nbsp; If they don't, then remove the layer using those samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2011 21:52:41 GMT</pubDate>
    <dc:creator>JeffBarrette</dc:creator>
    <dc:date>2011-05-11T21:52:41Z</dc:date>
    <item>
      <title>Data Driven Pages - show legend items only if they are in the map extent</title>
      <link>https://community.esri.com/t5/mapping-questions/data-driven-pages-show-legend-items-only-if-they/m-p/712079#M7700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Data Driven Pages to create a mapbook of several cities within a county.&amp;nbsp; My legend includes an area of interest layer.&amp;nbsp; I would like to automatically remove items from the layer if they are not found in the map extent.&amp;nbsp; For example, I would like to remove the University class from the area of interest layer in the legend if the data driven page does not have a university in the map.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;City A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Airport&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-University&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-School&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Park&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;City B&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Airport&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-School&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Park&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;City C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- School&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Park&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 12:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/data-driven-pages-show-legend-items-only-if-they/m-p/712079#M7700</guid>
      <dc:creator>MarkVolz</dc:creator>
      <dc:date>2011-05-04T12:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages - show legend items only if they are in the map extent</title>
      <link>https://community.esri.com/t5/mapping-questions/data-driven-pages-show-legend-items-only-if-they/m-p/712080#M7701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This will be one of the new features available with the Legend in 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, the only way to do it is via ArcObjects development.&amp;nbsp; It could be done with arcpy.mapping but each feature type would need to be its own layer.&amp;nbsp; Then you could perform a spatial overlay, determine what is in the extent, and then remove or add the appropriate layers.&amp;nbsp; You would need to make sure your legend has the setting to automatically update with layer changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 13:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/data-driven-pages-show-legend-items-only-if-they/m-p/712080#M7701</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-05-05T13:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages - show legend items only if they are in the map extent</title>
      <link>https://community.esri.com/t5/mapping-questions/data-driven-pages-show-legend-items-only-if-they/m-p/712081#M7702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have an example using arcpy.mapping?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 21:36:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/data-driven-pages-show-legend-items-only-if-they/m-p/712081#M7702</guid>
      <dc:creator>beckycrosswhite</dc:creator>
      <dc:date>2011-05-11T21:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages - show legend items only if they are in the map extent</title>
      <link>https://community.esri.com/t5/mapping-questions/data-driven-pages-show-legend-items-only-if-they/m-p/712082#M7703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not all in one example but here are two samples that should get you going:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 4th sample in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataFrame/00s300000003000000/"&gt;DataFrame&lt;/A&gt;&lt;SPAN&gt; class help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/AddLayer/00s300000025000000/"&gt;AddLayer&lt;/A&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/RemoveLayer/00s300000039000000/"&gt;RemoveLayer&lt;/A&gt;&lt;SPAN&gt; help samples&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If all your layers are already in the MXD, then use the first sample to see if they intersect with the data frame.&amp;nbsp; If they don't, then remove the layer using those samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 21:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/data-driven-pages-show-legend-items-only-if-they/m-p/712082#M7703</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-05-11T21:52:41Z</dc:date>
    </item>
  </channel>
</rss>

