<?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: How to add multiple feature layers to a map? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-multiple-feature-layers-to-a-map/m-p/810155#M2431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works like magic. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2017 17:54:35 GMT</pubDate>
    <dc:creator>BradGeerdes</dc:creator>
    <dc:date>2017-07-18T17:54:35Z</dc:date>
    <item>
      <title>How to add multiple feature layers to a map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-multiple-feature-layers-to-a-map/m-p/810153#M2429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to know how to&amp;nbsp;add multiple feature layers to a map? I tried syntax like the following, but only the last feature was added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from arcgis.features import FeatureLayer&lt;BR /&gt;from arcgis.features import FeatureCollection&lt;/P&gt;&lt;P&gt;my_map4 = my_gis.map('Chicago', 9)&lt;BR /&gt;my_map4.basemap = 'osm'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;f1&amp;nbsp;= FeatureLayer('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fxxx.com%2Farcgis%2Frest%2Fservices%2FStage%2Fcrew_change_point_service%2FMapServer%2F0" rel="nofollow" target="_blank"&gt;http://xxx.com/arcgis/rest/services/Stage/crew_change_point_service/MapServer/0&lt;/A&gt;&lt;SPAN&gt;')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f2&amp;nbsp;= FeatureLayer('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;xxx.com&lt;/SPAN&gt;/arcgis/rest/services/Stage/yard_service/MapServer/0')&lt;BR /&gt;my_map4.add_layer([f1, f2])&lt;/P&gt;&lt;P&gt;my_map4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 14:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-multiple-feature-layers-to-a-map/m-p/810153#M2429</guid>
      <dc:creator>BradGeerdes</dc:creator>
      <dc:date>2017-07-18T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple feature layers to a map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-multiple-feature-layers-to-a-map/m-p/810154#M2430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The map widget should be displayed before layers are added to it. The following should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from IPython.display import display&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;from arcgis.features import FeatureLayer&lt;BR /&gt;from arcgis.features import FeatureCollection&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;my_map4 = my_gis.map('Chicago', 9)&lt;BR /&gt;my_map4.basemap = 'osm'&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;f1&amp;nbsp;= FeatureLayer('&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fxxx.com%2Farcgis%2Frest%2Fservices%2FStage%2Fcrew_change_point_service%2FMapServer%2F0" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://xxx.com/arcgis/rest/services/Stage/crew_change_point_service/MapServer/0&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;f2&amp;nbsp;= FeatureLayer('&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;xxx.com&lt;/SPAN&gt;/arcgis/rest/services/Stage/yard_service/MapServer/0')&lt;BR /&gt;display(my_map4)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;my_map4.add_layer([f1, f2])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 17:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-multiple-feature-layers-to-a-map/m-p/810154#M2430</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-07-18T17:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple feature layers to a map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-multiple-feature-layers-to-a-map/m-p/810155#M2431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works like magic. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 17:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-multiple-feature-layers-to-a-map/m-p/810155#M2431</guid>
      <dc:creator>BradGeerdes</dc:creator>
      <dc:date>2017-07-18T17:54:35Z</dc:date>
    </item>
  </channel>
</rss>

