I've been adding paths and markers on my maps with the Graphic()
service, but I know you can do it all with multiple FeatureLayer()
.
What is the main difference between doing it all with one or the other?
Answer
As commented by @kenbuja:
From the documentation: "Unlike FeatureLayer and MapImageLayer, a GraphicsLayer has no schema. Therefore, the graphics that compose a GraphicsLayer may be of more than one geometry type (either points, lines, or polygons). Each graphic must have its own symbol since the GraphicsLayer cannot have an associated renderer. Graphics may also contain different attribute schema from one another." And "FeatureLayer has more capabilities than the GraphicsLayer, including rendering, querying, and labeling."
No comments:
Post a Comment