Saturday, 15 August 2015

Difference between Graphic() or a FeatureLayer() in ArcGIS


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

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...