Select to view content in your preferred language

Which layer do I choose?

1763
11
10-18-2010 12:55 PM
BjørnarSundsbø
Deactivated User
I have an application where I will display dynamic features moving in the map. There might be quite many of them for an area ( <2000, I think). They should move when their position is update. I'm wondering if I should create my own "fake" FeatureService to return the features, or if I should use GraphicsLayer for displaying them.

Any reccomendations?

Bjørnar Sundsbø
0 Kudos
11 Replies
JenniferNery
Esri Regular Contributor
I think GraphicsLayer is more powerful than ElementLayer. I cannot think of anything you can do with ElementLayer that you cannot do with GraphicsLayer but I cannot say the same for the reverse.

You can look at the members and methods for the two to better compare them.
http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.GraphicsLa...
http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ElementLay...

But you are right about the ease for Drag and Drop with ElementLayer since it is dealing with FrameworkElement already and GraphicsLayer contain FrameworkElement in the symbol.

Here's an example of Drag and Drop with GraphicsLayer (http://alpascual.com/post/adding-images-on-silverlight-4-using-drag-and-drop-and-the-web-camera.aspx) but the direction is to the map, not from the map.

It really is your choice to make, whatever best suits your need 🙂
0 Kudos
BjørnarSundsbø
Deactivated User
Thanks. Don't you just hate choices....? 🙂
0 Kudos