0

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?

  • 2
    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." – kenbuja Apr 26 '18 at 15:07
  • Are you using the 3.x or 4.x version? – James Lawruk Apr 27 '18 at 15:31
  • I'm using 4.x, but I now understand the main difference, after having read the documentation a second time – gespinha Apr 28 '18 at 16:19
0

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."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.