Hello,
I am new to the Desktop API and having to learn very much rather quickly. I’m designing an application where a user will enter information for a starting point (lat and long) and an ending point (lat and long). They can either select the point from a drop down list, enter the lat and long, or click on the map to select each start/end point.
In my application there can be 1-72 individual starting/ending points or one starting point with up to 72 ending points, or many other combinations. I have 4 requirements that I need advise on:
- Starting/ending points must be draggable,
- Starting and ending points must be different colors (Red for starting, green for ending)
- Each set of points must be connected by a line,
- the biggie, the line must update it’s color (red,yellow,green) depending on information received from another application of ours.
I’ve been experimenting with using an InMemoryFeatureLayer, drawing the points and connecting them with a line. Obviously I’m experiencing problems coloring both points and line differently. I’m wondering how many points can be added to a layer and how many layers can be added before performance slows down. One suggestion I received from the guys at work was to use one layer for the starting points, one for the ending points, and another for the lines. Then I would only have to worry about making #4 above work correctly.
I’ve looked at the different samples and picked up a lot of ideas, but I’m open to any and all suggestions as to the correct way to go about doing this.
Thank you all in advance!