<?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: Is there a way to set the initial extent in a web map created in a program? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781919#M1241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! That worked. I did have&amp;nbsp;to enclose the string of coordinates in quotes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this in the documentation somewhere? I can't seem to find it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2017 21:52:05 GMT</pubDate>
    <dc:creator>CharlieWare</dc:creator>
    <dc:date>2017-04-20T21:52:05Z</dc:date>
    <item>
      <title>Is there a way to set the initial extent in a web map created in a program?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781917#M1239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a python API script that creates a web map from a feature service. I would like to set the initial extent of the map to zoom into the features in the feature service. I can set the initial extent in the Settings tab of the ArcGIS Online UI but cannot find the setting in the web map specification for setting the initial extent through code.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 20:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781917#M1239</guid>
      <dc:creator>CharlieWare</dc:creator>
      <dc:date>2017-04-20T20:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to set the initial extent in a web map created in a program?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781918#M1240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The extent is preserved as a property of the web map item and not in the web map definition, hence you may not find it in the web map spec. To set the extent using Python API, after publishing the web map, try to update the web map item using&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;update_parameters &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'extent'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;bottom_left_X&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; bottom_left_Y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; top_right_X&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; top_right_Y&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#example - set NY as extent&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#update_parameters = {'extent':'-74.227,40.537,-73.601,40.862'}&lt;/SPAN&gt;
my_web_map_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;update_parameters&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The next time you open the web map, it should load this extent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781918#M1240</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T08:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to set the initial extent in a web map created in a program?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781919#M1241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! That worked. I did have&amp;nbsp;to enclose the string of coordinates in quotes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this in the documentation somewhere? I can't seem to find it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 21:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781919#M1241</guid>
      <dc:creator>CharlieWare</dc:creator>
      <dc:date>2017-04-20T21:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to set the initial extent in a web map created in a program?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781920#M1242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, yes, you would have to send it as a string, I updated the answer to reflect this.&amp;nbsp;This part of the Python API is built on top of the&amp;nbsp;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r300000054000000.htm"&gt;ArcGIS REST API&lt;/A&gt;&amp;nbsp;so I would recommend looking at a page like this&amp;nbsp;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Common_parameters/02r30000009v000000/"&gt;Item Common Properties&lt;/A&gt;. That being said, we would like to make every effort to make the Python API doc adequate and suggest the REST API doc as reference to advanced users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 22:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781920#M1242</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-04-20T22:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to set the initial extent in a web map created in a program?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781921#M1243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;bottom_left_X &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"-141.108"&lt;/SPAN&gt;
bottom_left_Y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"22.055"&lt;/SPAN&gt;
top_right_X &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"-56.821"&lt;/SPAN&gt;
top_right_Y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"52.476"&lt;/SPAN&gt;
update_parameters &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'extent'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{}, {}, {}, {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;bottom_left_X&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; bottom_left_Y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; top_right_X&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; top_right_Y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:51:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-there-a-way-to-set-the-initial-extent-in-a-web/m-p/781921#M1243</guid>
      <dc:creator>MaxSquires</dc:creator>
      <dc:date>2021-12-12T08:51:04Z</dc:date>
    </item>
  </channel>
</rss>

