Select to view content in your preferred language

Editor widget is showing "New Feature" default instead of my various values

248
2
Jump to solution
a month ago
ericdmj
New Contributor

I created a simple FeatureLayer called Cryptids2 to test the Editor widget. The idea is the user can click on the map and indicate whether they saw, say, Bigfoot or a jackalope or two other types of creatures.  I gave each of the four types a unique symbol in my webmap, but on the Editor widget the default "New Feature" with a circle shows up, rather than showing my four symbols. 

This behavior is in contrast with a second layer I added, the "Hazard" layer that is used in the Editor widget documentation.  If you look at the widget on my Pages site https://ericdmj.github.io/edittest/, you can see that the Hazard layer works as expected, with the user able to see and click icons associated with values and add them to the map.  But if you scroll down in the widget, my Cryptids2 layer isn't being equally fancy. Any notions why that is? (Attached is a picture of the Editor from my GitHub site showing what I mean.)

Here's my webmap. (Attached is a picture showing the Legend from that with the symbols I want to appear in my Editor widget.)

0 Kudos
1 Solution

Accepted Solutions
JoelBennett
MVP Regular Contributor

This is because in both cases, the editor is setting these options up based upon FeatureTemplate information defined within the service.  Here you can see the information from your service:

https://services.arcgis.com/HRPe58bUyBqyyiCt/arcgis/rest/services/Cryptids2/FeatureServer/0?f=pjson

If you search for (Ctrl-F) "templates", you'll see the information that corresponds with the "New Feature" option for your layer.

Here's the service information for the hazards layer:

https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Hazards_Uptown_Charlotte/FeatureSe...

In this case, if you search for "types" you'll find the information that drives what's found in the Editor widget.

Therefore, if you setup the templates in your map before publishing, you should get the expected results.  If you're using ArcGIS Pro, this page might be a good place to start.

View solution in original post

2 Replies
JoelBennett
MVP Regular Contributor

This is because in both cases, the editor is setting these options up based upon FeatureTemplate information defined within the service.  Here you can see the information from your service:

https://services.arcgis.com/HRPe58bUyBqyyiCt/arcgis/rest/services/Cryptids2/FeatureServer/0?f=pjson

If you search for (Ctrl-F) "templates", you'll see the information that corresponds with the "New Feature" option for your layer.

Here's the service information for the hazards layer:

https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Hazards_Uptown_Charlotte/FeatureSe...

In this case, if you search for "types" you'll find the information that drives what's found in the Editor widget.

Therefore, if you setup the templates in your map before publishing, you should get the expected results.  If you're using ArcGIS Pro, this page might be a good place to start.

ericdmj
New Contributor

Oh, wow. Good find, and I appreciate your explanation, @JoelBennett ! I'm using ArcGIS Online in this case, so I used its equivalent to the ArcGIS Pro page you provided above, and it got me there, specifically by using the Map Viewer Classic instructions. 

Attached is the image from my working copy (different from the link above).