Instrução

Criar uma camada de feição hospedada que esteja aberta a comentários do público

Last Published: July 21, 2023

Resumo

It is sometimes necessary to enable comments on the web map to collect user feedback. This article provides a workaround to create a hosted feature layer with a field added to enable comments and keep track of user comments on the web map.

Procedimento

Note:
The following steps require an ArcGIS organizational account with sufficient privileges to publish hosted feature layers.
  1. Create a hosted feature layer.
    1. In ArcGIS Online, navigate to Content > My Content, and click the Create button.
Image showing the Content tab in ArcGIS Online
  1. In the drop-down menu, click Feature Layer.
  2. In the Create a feature layer window, on the From Template tab, click Build a layer.
Image showing the Create a feature layer window
  1. Click Points, and click Create.
Image showing the Points pane in the Create a feature layer window
  1. In the next window, make the necessary changes or edits, and click Next.
  2. Use the mouse to pan and zoom the map to the desired map extent, or manually type the coordinates in the coordinate boxes, and click Next.
Image showing the window to set the map extent
  1. Specify a name for Title and Tags.
  2. Click Done.
  1. Add a field to the hosted feature layer to enable comments.
    1. On the item details page, click the Data tab, and click Field.
Image showing the Data tab in ArcGIS Online
  1. Click the Add Image of the +Add button button.
  2. In the Add Field window, specify a name for Field Name and Display Name.
  3. For Type, click the drop-down menu, and select String.
  4. Click Add New Field.
  1. Enable the settings of the hosted feature layer to track user comments.
    1. On the item details page, click the Settings tab.
Note:
To share the feature layer with the public, under General settings, check the Public Data Collection check box, and click Save.
  1. Under the Feature Layer (hosted) settings, check the Enable editing, Keep track of created and updated features, and Keep track of who created and last updated features check boxes.
  2. Click Save.
  1. Ensure the web map and hosted feature layer are shared with the same audience.
    1. In ArcGIS Online, navigate to Content > My Content.
    2. On the left side of the page, navigate to the folder the items are saved in, and click the folder to open it.
    3. On the list, check the check boxes to select the items.
    4. Click Share.
Image showing the items list in My Content in ArcGIS Online
  1. In the Share window, select either Organization or Everyone (Public).
  2. Click Save.

ID do Artigo: 000024505

Receba notificações e encontre soluções para problemas novos ou comuns

Obtenha respostas resumidas e soluções de vídeo do nosso novo chatbot de IA.

Baixe o Aplicativo de Suporte da Esri

Informações Relacionadas

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download