I am trying to make a web-editable application, with a feature layer like the example 311Incidents, however I found there are some different between my "layer" and the "feature layers"
1. I found that my publish feature layer state it is a "layer", but the arcgis example is named with "feature layer"

2. My published feature layer does not have any types

As such, my question is, what is the correct way to create a feature layer with the self-defined types? Thank you.