Hi,
I used the MapShapes in my own layers in Desktop Edition 2.0. I have seen the example posted under the Code Community for the MapShapeLayer and MapShape classes to go with Desktop 3.0. I do need to do spatial queries with my objects, so I'm not sure how best to proceed.
I have two different types of objects - let's just call them sensors and targets. I figured they would be in separate layers.
The sensors have characteristics in common - their coverage areas are circles, for instance, but they also have different characteristics - coverage range/radius, sensor "state" (e.g., "ready", "active", "unknown", etc.), user state (selected, not selected) I want to draw the sensors at specific locations and show their coverage area in an appropriate color, indicating "state", and selected or unselected.
The targets are polygons - they have a varying number of points, they can move, although not constantly, just periodic updates, and they have a threat level (hi, med, lo), selected/unselected, and other characteristics.
The sensors are read at start-up from a file, and the threats can come from data feeds (Atom) on the fly.
I need to do queries to select all sensors within range of a target (all circles partially or completely overlapped by the polygon)
It would seem if I could use/extend FeatureSource, I could handle the reads/writes, and expose the appropriate characteristics/columns upon which to render the features differently?
Or would I be better off continuing with the MapShape/MapShapeLayer as presented in the Code Community sample? I do need to interact with the sensors and threats in other areas outside of their display on the map too.
(Hope this isn't too vague - I'd feel a lot better if I could see a VB sample of deriving from FeatureSource, FeatureLayer, but not sure what's involved)
-jeff