<?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: Setting Visibility Scale using the ArcGIS API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856699#M4040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;How do you do this in jupyter (python)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;how do i add a layer and change when it turns on based on zoom? Like if i zoom out I want a layer to deactivate(hide), and when i zoom in i want to be able to see it again. see the given layer below as an example. And how do i get the legend to appear, i found ".legend" but it doesn't work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;from arcgis.features import FeatureLayer&lt;BR /&gt;polygon_layer = FeatureLayer(url="https://gisservices.information.qld.gov.au/arcgis/rest/services/Farming/DroughtDeclarations/MapServer")&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;WebMap = gis.map('Queensland')&lt;BR /&gt;WebMap.add_layer(&lt;SPAN style="background-color: #ffffff;"&gt;polygon_layer&lt;/SPAN&gt;)&lt;BR /&gt;WebMap.legend = True&lt;BR /&gt;WebMap&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2019 00:10:36 GMT</pubDate>
    <dc:creator>GarasLewis</dc:creator>
    <dc:date>2019-10-18T00:10:36Z</dc:date>
    <item>
      <title>Setting Visibility Scale using the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856694#M4035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can the visibility scale be set using the ArcGIS API for Python&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I set the&amp;nbsp;&lt;SPAN&gt;visibility scale for a list of Feature Layers in an AGOL map and update the Feature Layers, the visibility scale settings for each layer goes back to the default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to update the visibility scale settings using the ArcGIS API for Python? I don't want to have to go in and set the visibility scale settings manually after every update.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2019 15:18:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856694#M4035</guid>
      <dc:creator>GISUser17</dc:creator>
      <dc:date>2019-10-14T15:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Visibility Scale using the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856695#M4036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should switch to use Pro.&amp;nbsp;You manually set your visibilities there once and every time you publish they stay the same. &lt;BR /&gt;However, I&amp;nbsp; never had an issue publishing from and MXD either, they always stayed as they were in the MXD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGO Online, or other it is all the same. Do you use grouping in your MXD or Project.&amp;nbsp; That may be doing away with your Visibility settings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2019 15:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856695#M4036</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2019-10-14T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Visibility Scale using the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856696#M4037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The map is created in AGOL, not published from ArcGIS Pro or an MXD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process needs to be automated as the data is updated frequently and needs to be uploaded regularly and frequently. As soon as a change is made to the database a process is started automatically that uploads the new datasets to AGOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is not a way to set the visibility scale using the API, can a service published from an MXD, as you describe, be automated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GIU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 07:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856696#M4037</guid>
      <dc:creator>GISUser17</dc:creator>
      <dc:date>2019-10-15T07:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Visibility Scale using the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856697#M4038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can publish a service definition from an mxd or Pro it should set up your features just like they would be have on your desktop version.&amp;nbsp;However, if the name of the data is changing then you may have to look to a scripted fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 12:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856697#M4038</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2019-10-15T12:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Visibility Scale using the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856698#M4039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I could do that and the data names and schemas are unchanged between updates. However, my understanding of AGOL is that datasets are not automatically updated from the source, in this case an SDE GeoDatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the service definition is published, how are the datasets now on AGOL updated when the database is updated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 12:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856698#M4039</guid>
      <dc:creator>GISUser17</dc:creator>
      <dc:date>2019-10-15T12:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Visibility Scale using the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856699#M4040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;How do you do this in jupyter (python)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;how do i add a layer and change when it turns on based on zoom? Like if i zoom out I want a layer to deactivate(hide), and when i zoom in i want to be able to see it again. see the given layer below as an example. And how do i get the legend to appear, i found ".legend" but it doesn't work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;from arcgis.features import FeatureLayer&lt;BR /&gt;polygon_layer = FeatureLayer(url="https://gisservices.information.qld.gov.au/arcgis/rest/services/Farming/DroughtDeclarations/MapServer")&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;WebMap = gis.map('Queensland')&lt;BR /&gt;WebMap.add_layer(&lt;SPAN style="background-color: #ffffff;"&gt;polygon_layer&lt;/SPAN&gt;)&lt;BR /&gt;WebMap.legend = True&lt;BR /&gt;WebMap&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 00:10:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856699#M4040</guid>
      <dc:creator>GarasLewis</dc:creator>
      <dc:date>2019-10-18T00:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Visibility Scale using the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856700#M4041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, not sure if you are still looking for an answer,&amp;nbsp;you can look&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/249281-set-visibility-range-python-api"&gt;here&amp;nbsp;&lt;/A&gt;for a code example showing how to set the visibility range with the Python API&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 15:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/setting-visibility-scale-using-the-arcgis-api-for/m-p/856700#M4041</guid>
      <dc:creator>LukasWürsch</dc:creator>
      <dc:date>2020-03-05T15:17:32Z</dc:date>
    </item>
  </channel>
</rss>

