<?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: Add a feature class to a map in Jupyter Notebook in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-class-to-a-map-in-jupyter-notebook/m-p/1597529#M11237</link>
    <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;How would one go about adding labels to these points so they display in the map widget?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2025 14:28:29 GMT</pubDate>
    <dc:creator>BBowers_napacounty</dc:creator>
    <dc:date>2025-03-20T14:28:29Z</dc:date>
    <item>
      <title>Add a feature class to a map in Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-class-to-a-map-in-jupyter-notebook/m-p/772486#M782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I add a field of a feature class to a map using something like map1.add_layer(FeatureClassName, FieldName, SymbologyType, ColorMap)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 14:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-class-to-a-map-in-jupyter-notebook/m-p/772486#M782</guid>
      <dc:creator>YaoTang</dc:creator>
      <dc:date>2020-06-03T14:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add a feature class to a map in Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-class-to-a-map-in-jupyter-notebook/m-p/772487#M783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Notebooks from inside or outside of ArcGIS Pro?&lt;/P&gt;&lt;P&gt;you can use the arcgis and the arcpy modules.&lt;/P&gt;&lt;P&gt;It would be kind of useless to make a map inside a notebook inside of Pro, since you can just look at the map there.&lt;/P&gt;&lt;P&gt;There is webmap stuff and other things in&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/api-reference/" title="https://developers.arcgis.com/python/api-reference/"&gt;API Reference for the ArcGIS API for Python — arcgis 1.8.0 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the arcpy mapping module&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm"&gt;Introduction to arcpy.mp—ArcPy | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 15:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-class-to-a-map-in-jupyter-notebook/m-p/772487#M783</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-03T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add a feature class to a map in Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-class-to-a-map-in-jupyter-notebook/m-p/772488#M784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can, sort of. You can't directly view the Feature Class (FC), but if you want to see what the data looks like in a map, you can convert it to a Spatially Enabled DataFrame (&lt;SPAN&gt;SeDF)&lt;/SPAN&gt;, and then plot that on a map in Jupyter Notebooks. Just keep in mind that your&amp;nbsp;FC and the SeDF are disconnected. If you make changes to your FC then you will need to update the SeDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is one way to do it that I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;# import modules&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;import pandas as pd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;from arcgis.features import GeoAccessor, GeoSeriesAccessor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;from arcgis.gis import GIS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;# create map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;gis = GIS()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;my_map = gis.map(location = 'San Francisco, CA', zoomlevel =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;12)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;# load your feature class into a spatially enabled dataframe (sedf)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;fc = r'c:\gis\my_geodatabase.gdb\firestations'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;my_sedf =&amp;nbsp;pd.DataFrame.spatial.from_featureclass(fc)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;# plot the sedf on your map&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;my_sedf.spatial.plot(map_widget = my_map)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;# show the map&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;my_map&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;IMG alt="example plot" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/497102_san_francisco.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2020 15:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-class-to-a-map-in-jupyter-notebook/m-p/772488#M784</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2020-06-18T15:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add a feature class to a map in Jupyter Notebook</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-class-to-a-map-in-jupyter-notebook/m-p/1597529#M11237</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;How would one go about adding labels to these points so they display in the map widget?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 14:28:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-class-to-a-map-in-jupyter-notebook/m-p/1597529#M11237</guid>
      <dc:creator>BBowers_napacounty</dc:creator>
      <dc:date>2025-03-20T14:28:29Z</dc:date>
    </item>
  </channel>
</rss>

