<?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 Jupyter Notebooks: display local shapefiles in map widget? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jupyter-notebooks-display-local-shapefiles-in-map/m-p/831110#M3175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just starting to explore ArcGIS API for python Jupyter Notebooks and am looking for a method to display a map in my notebook that I can add shapefiles to that are saved locally. More specifically I am after a way to have a persistent map widget in my notebook that has layers that will update through various geoprocessing steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have explored the map.gis() function but it appears to only be able to map.addlayer() that exist on AGOL or an Enterprise portal. I would be great if I could pull local shapefiles in this same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have stumbled upon a couple other modules that look like they&amp;nbsp;&lt;EM&gt;might&lt;/EM&gt; accomplish this, but I wanted to ask here and see if there is an out-of-the-box solution first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2019 18:59:36 GMT</pubDate>
    <dc:creator>HaydenHinton</dc:creator>
    <dc:date>2019-08-06T18:59:36Z</dc:date>
    <item>
      <title>Jupyter Notebooks: display local shapefiles in map widget?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jupyter-notebooks-display-local-shapefiles-in-map/m-p/831110#M3175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just starting to explore ArcGIS API for python Jupyter Notebooks and am looking for a method to display a map in my notebook that I can add shapefiles to that are saved locally. More specifically I am after a way to have a persistent map widget in my notebook that has layers that will update through various geoprocessing steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have explored the map.gis() function but it appears to only be able to map.addlayer() that exist on AGOL or an Enterprise portal. I would be great if I could pull local shapefiles in this same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have stumbled upon a couple other modules that look like they&amp;nbsp;&lt;EM&gt;might&lt;/EM&gt; accomplish this, but I wanted to ask here and see if there is an out-of-the-box solution first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 18:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/jupyter-notebooks-display-local-shapefiles-in-map/m-p/831110#M3175</guid>
      <dc:creator>HaydenHinton</dc:creator>
      <dc:date>2019-08-06T18:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Jupyter Notebooks: display local shapefiles in map widget?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jupyter-notebooks-display-local-shapefiles-in-map/m-p/831111#M3176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/323073" target="_blank"&gt;Hayden Hinton&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Here's one way of adding local shapefiles to a map in Jupyter Notebook:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; SpatialDataFrame
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; user&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
sdf &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialDataFrame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;from_featureclass&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"Path to local shapefiles"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
map1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#local region can be added in parentheses&lt;/SPAN&gt;
map1
sdf&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;plot&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kind&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'map'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; map_widget&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; map1&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;/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 10:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/jupyter-notebooks-display-local-shapefiles-in-map/m-p/831111#M3176</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-12-12T10:02:15Z</dc:date>
    </item>
  </channel>
</rss>

