<?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: isServiceLayer layer property seems to ignore feature services in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/isservicelayer-layer-property-seems-to-ignore/m-p/209741#M16233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using ArcGIS 10.3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a work-around I am using the isRasterizingLayer property to remove the service layers that are not being removed by the isServiceLayer block above, but it seems a bit of a hack.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 22:24:01 GMT</pubDate>
    <dc:creator>TomFlahive</dc:creator>
    <dc:date>2015-04-13T22:24:01Z</dc:date>
    <item>
      <title>isServiceLayer layer property seems to ignore feature services</title>
      <link>https://community.esri.com/t5/python-questions/isservicelayer-layer-property-seems-to-ignore/m-p/209739#M16231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do some advanced web map printing, I used the python script in the "Basic web map printing/exporting using arcpy.mapping" tutorial.&amp;nbsp; In the python script, there is a block of code to remove all layers in the map that are service layers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for lyr in arcpy.mapping.ListLayers(mxd, data_frame=df):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.isServiceLayer:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.RemoveLayer(df, lyr)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This mostly works, but I am finding that it does not seem to remove services that are feature services.&amp;nbsp; Is there any reason for this?&amp;nbsp; How can I get it to remove all services from the map, including feature services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:20:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/isservicelayer-layer-property-seems-to-ignore/m-p/209739#M16231</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2021-12-11T10:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: isServiceLayer layer property seems to ignore feature services</title>
      <link>https://community.esri.com/t5/python-questions/isservicelayer-layer-property-seems-to-ignore/m-p/209740#M16232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of ArcGIS are you using?&amp;nbsp; I ask because there were some changes, I would argue bugs, with how serviceProperties behave differently in ArcGIS 10.3 than ArcGIS 10.2.2.&amp;nbsp; Not sure if that could affect isServiceLayer as well or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 22:17:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/isservicelayer-layer-property-seems-to-ignore/m-p/209740#M16232</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-04-13T22:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: isServiceLayer layer property seems to ignore feature services</title>
      <link>https://community.esri.com/t5/python-questions/isservicelayer-layer-property-seems-to-ignore/m-p/209741#M16233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using ArcGIS 10.3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a work-around I am using the isRasterizingLayer property to remove the service layers that are not being removed by the isServiceLayer block above, but it seems a bit of a hack.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 22:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/isservicelayer-layer-property-seems-to-ignore/m-p/209741#M16233</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2015-04-13T22:24:01Z</dc:date>
    </item>
  </channel>
</rss>

