<?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: Set the extent of an AGOL map or feature layer through Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/set-the-extent-of-an-agol-map-or-feature-layer/m-p/1003460#M59092</link>
    <description>&lt;P&gt;Hi Judy.&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&amp;nbsp; I tried it and it worked like a charm.&amp;nbsp; Thank you so much.&lt;/P&gt;&lt;P&gt;Julio&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2020 15:17:10 GMT</pubDate>
    <dc:creator>JulioGarrido</dc:creator>
    <dc:date>2020-11-20T15:17:10Z</dc:date>
    <item>
      <title>Set the extent of an AGOL map or feature layer through Python</title>
      <link>https://community.esri.com/t5/python-questions/set-the-extent-of-an-agol-map-or-feature-layer/m-p/400997#M31564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Crime map that gets updated every night with fresh data from our RMS system.&amp;nbsp; The raw data gets geocoded, washed of any specifics (e.g. officer, victim, etc.), and then uploaded to the County Sheriff's folder in AGOL. This is all done through Python.&amp;nbsp; Is there a way &lt;STRONG&gt;in Python&lt;/STRONG&gt; to add the extent information onto the feature layer and/or to the online map itself?&amp;nbsp; I have the organization's extent coordinates (Top, Bottom, Left, Right) in decimal degrees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Julio G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/set-the-extent-of-an-agol-map-or-feature-layer/m-p/400997#M31564</guid>
      <dc:creator>JulioGarrido</dc:creator>
      <dc:date>2020-08-13T20:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set the extent of an AGOL map or feature layer through Python</title>
      <link>https://community.esri.com/t5/python-questions/set-the-extent-of-an-agol-map-or-feature-layer/m-p/400998#M31565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from arcgis.mapping import WebMap&lt;BR /&gt;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("home")&lt;BR /&gt;item = gis.content.get('258ce2e9584843ab8c0efe991844c672')&lt;BR /&gt;extent = [[-118.613114, 33.773435], [-118.00200, 32.215572]]&lt;/P&gt;&lt;P&gt;# extent format: 'top left', 'bottom right' bounding box in WGS 84 Auxiliary Mercator decimal degrees&lt;/P&gt;&lt;P&gt;item.update(item_properties={'extent': extent})&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 15:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/set-the-extent-of-an-agol-map-or-feature-layer/m-p/400998#M31565</guid>
      <dc:creator>JudyMak</dc:creator>
      <dc:date>2020-08-19T15:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set the extent of an AGOL map or feature layer through Python</title>
      <link>https://community.esri.com/t5/python-questions/set-the-extent-of-an-agol-map-or-feature-layer/m-p/1003460#M59092</link>
      <description>&lt;P&gt;Hi Judy.&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&amp;nbsp; I tried it and it worked like a charm.&amp;nbsp; Thank you so much.&lt;/P&gt;&lt;P&gt;Julio&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 15:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/set-the-extent-of-an-agol-map-or-feature-layer/m-p/1003460#M59092</guid>
      <dc:creator>JulioGarrido</dc:creator>
      <dc:date>2020-11-20T15:17:10Z</dc:date>
    </item>
  </channel>
</rss>

