Hello,
I have an InMemoryFeatureLayer that I use to show the walking directions from point A to point B. First I show the walking path from a collection of points, and show it as a purple dashed-line. Then I show two points (green circle and red circle). I add the line first, then the points. For some reason, the line always shows on top of the points. Not a huge deal, but it would look better if the points were on top. Any idea why it would do this?
I have attached a code snippet and a jpg showing an example.
Thanks!
Serena
InMemoryFeatureLayer points and lines
Hi Serena,
Please setting a higher DrawingLevel for the point style. like the below codes:
PointStyle destinationStyle = new PointStyle();
destinationStyle.SymbolType = PointSymbolType.Circle;
destinationStyle.SymbolSolidBrush = new GeoSolidBrush(GeoColor.StandardColors.Red);
destinationStyle.SymbolSize = MAPCIRCLE_SIZE;
destinationStyle.DrawingLevel = DrawingLevel.LevelFour;
Let us know if there is any question.
Best regards,
Johnny
That worked. Thank you!
Serena
Hi Serena,
It is good to hear it works, any other questions please feel free to let us know.
Thanks,
Johnny