<?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>idea copy map with all form settings as template in ArcGIS Field Maps Ideas</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idi-p/1165543</link>
    <description>&lt;P&gt;In order to quickly reproduce settings&amp;nbsp; for use in field maps it would be helpfull if a web map could be saved as a template for use in other similar projects. For example; for inspection of trees a field maps map is made with certain forms, domains and conditional formatting. For another project, the same inspection is done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would save a lot of time if one could make one (empty dataset) field maps map with all settings, which then can be duplicated to enable datacollection in an identical way for subsequent projects&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 08:12:25 GMT</pubDate>
    <dc:creator>GISTeam4</dc:creator>
    <dc:date>2022-04-19T08:12:25Z</dc:date>
    <item>
      <title>copy map with all form settings as template</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idi-p/1165543</link>
      <description>&lt;P&gt;In order to quickly reproduce settings&amp;nbsp; for use in field maps it would be helpfull if a web map could be saved as a template for use in other similar projects. For example; for inspection of trees a field maps map is made with certain forms, domains and conditional formatting. For another project, the same inspection is done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would save a lot of time if one could make one (empty dataset) field maps map with all settings, which then can be duplicated to enable datacollection in an identical way for subsequent projects&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 08:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idi-p/1165543</guid>
      <dc:creator>GISTeam4</dc:creator>
      <dc:date>2022-04-19T08:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: copy map with all form settings as template</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1165797#M622</link>
      <description>&lt;P&gt;I would love this as well.&amp;nbsp; We build out 12 states and it is all day of manual clicking.&lt;/P&gt;&lt;P&gt;Have you at AGOL Assistant?&amp;nbsp;&amp;nbsp;&lt;A href="https://ago-assistant.esri.com/" target="_blank" rel="noopener"&gt;https://ago-assistant.esri.com/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also script can do it but it has been a bit unreliable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;account = 'https://www.arcgis.com' # AGOL/Portal url
# using Pro instead
##username = 'yourusername' # AGOL Username
##password = 'yourpassword' # AGOL password
webmap_id_source = '13a149de6659bc68' #  32-character id of web map with the source layer
webmap_id_target = '9f5d4d3574af2' #  32-character id of web map with the target laye

##############################################################################################

### EXECUTE ###

#Import
from arcgis.gis import GIS
from arcgis.mapping import WebMap
import sys

print("Starting")

# Check layers names and web maps are not identical
if webmap_id_source == webmap_id_target and copy_popup_from_this_layer == paste_popup_to_this_layer:
    sys.exit("Script cancelled: Source and Target layers have the same name and are within the same web map. Please rename one layer before continuing")

#Connect to GIS
#gis = GIS(account,username, password)
gis = GIS('pro')
source_webmap = gis.content.get(webmap_id_source)
target_webmap = gis.content.get(webmap_id_target)

# Get a list of layers in both web maps
web_map_obj_source = WebMap(source_webmap)
web_map_obj_target = WebMap(target_webmap)
layers_sourceWM = web_map_obj_source.layers
layers_targetWM = web_map_obj_target.layers

# Loop through all the source layers and copy to the matching targets
for sourceLayer in layers_sourceWM:
    found = 0
    for targetLayer in layers_targetWM:
        if targetLayer.title == sourceLayer.title:
            targetLayer.update({'popupInfo':sourceLayer.popupInfo})
            targetLayer.update({'showLabels':sourceLayer.showLabels})
            #targetLayer.update({'labelingInfo':sourceLayer.labelingInfo})
            found += 1

    if found == 0:
        print("Warning did not find layer " + sourceLayer.title + " in the target map")
    elif found &amp;gt; 1:
        print("Warning found the source layer " + sourceLayer.title + " " + str(found) + " times in the target map")
    else:
        print("Copied " + sourceLayer.title)

# Update/save webmap
web_map_obj_target.update()

print("Finished")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 18:23:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1165797#M622</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-04-19T18:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: copy map with all form settings as template</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1191817#M804</link>
      <description>&lt;P&gt;This is possible by using a arcgis notebook within arcgis online.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send a DM if you need help with this.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 09:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1191817#M804</guid>
      <dc:creator>Sietse_de_Haan</dc:creator>
      <dc:date>2022-07-13T09:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: copy map with all form settings as template</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1263924#M1098</link>
      <description>&lt;P&gt;This idea is absolutely key. The amount of hours my team spends recreating similar field maps and feature layers for different projects and having to go through all the settings again is incredible.&lt;BR /&gt;&lt;BR /&gt;I'm currently writing a (very complicated) python script to try and do it, but surely this is something ESRI could provide at the click of a button.&lt;BR /&gt;&lt;BR /&gt;"Clone Webmap Template" or something similar.&lt;BR /&gt;&lt;BR /&gt;Input would be an existing configured webmap and output would ask for a "New name" and then create a new map containing blank cloned copies of all the feature layers within that map.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 09:55:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1263924#M1098</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2023-03-03T09:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: copy map with all form settings as template</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1296297#M1270</link>
      <description>&lt;P&gt;I'm assuming this has not been resolved yet? I'm getting really tired of having to rebuild 126 questions with drop-down options each time I go to a new community for sewer mapping.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1296297#M1270</guid>
      <dc:creator>JocelynWhite</dc:creator>
      <dc:date>2023-06-06T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: copy map with all form settings as template</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1478493#M1808</link>
      <description>&lt;P&gt;This would also save me countless hours of work. I really hope this gets implemented.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 16:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1478493#M1808</guid>
      <dc:creator>JamesPoeschel</dc:creator>
      <dc:date>2024-05-24T16:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: copy map with all form settings as template</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1478608#M1809</link>
      <description>&lt;P&gt;I love this idea which will be super helpful for avoiding duplicate effort.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 18:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1478608#M1809</guid>
      <dc:creator>LanSong</dc:creator>
      <dc:date>2024-05-24T18:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: copy map with all form settings as template</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1478991#M1810</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/596829"&gt;@JamesPoeschel&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/701025"&gt;@LanSong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is already possible by using an ArcGIS Online Notebook. I can send you a copy if you like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 06:58:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1478991#M1810</guid>
      <dc:creator>Sietse_de_Haan</dc:creator>
      <dc:date>2024-05-27T06:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: copy map with all form settings as template</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1479470#M1812</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/78400"&gt;@Sietse_de_Haan&lt;/a&gt;&amp;nbsp;Please do! I keep getting errors with the code posted above.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 12:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/copy-map-with-all-form-settings-as-template/idc-p/1479470#M1812</guid>
      <dc:creator>JamesPoeschel</dc:creator>
      <dc:date>2024-05-28T12:52:47Z</dc:date>
    </item>
  </channel>
</rss>

