Hi,
I am trying to add some MapEllipse controls to my map but for some reason they aren't showing up. I am successfully drawing MapPolygons so I don't know why the ellipses won't draw.
Where polygon.Points[0] is a location from one of the correctly rendering polygons.
I was using just Ellipse correctly in one of my custom MapLayer derived classes but I wasn't able to figure out how to get regular polygons to render on that layer since I needed to interpret for each point what its value should be on the Canvas relative to the location.
Ellipses were easy to calculate because they only have one location point which I attached via the MapLayer.SetLocation() method.
Now that I am trying to use InformationLayer instead of a custom MapLayer I have an opposite problem since I can get the Polygons but I can't get get the ellipses (MapPolygon and MapEllipse respectively.)
I just can't seem to win :)
Cheers,
Clint
I am trying to add some MapEllipse controls to my map but for some reason they aren't showing up. I am successfully drawing MapPolygons so I don't know why the ellipses won't draw.
MapEllipse ellipse = new MapEllipse(); |
ellipse.Fill = new SolidColorBrush(Colors.Red); |
ellipse.Stroke = new SolidColorBrush(Colors.Blue); |
ellipse.StrokeThickness = 3; |
ellipse.Width = 30; |
ellipse.Height = 30; |
ellipse.Location = polygon.Points[0]; |
Where polygon.Points[0] is a location from one of the correctly rendering polygons.
I was using just Ellipse correctly in one of my custom MapLayer derived classes but I wasn't able to figure out how to get regular polygons to render on that layer since I needed to interpret for each point what its value should be on the Canvas relative to the location.
Ellipses were easy to calculate because they only have one location point which I attached via the MapLayer.SetLocation() method.
Now that I am trying to use InformationLayer instead of a custom MapLayer I have an opposite problem since I can get the Polygons but I can't get get the ellipses (MapPolygon and MapEllipse respectively.)
I just can't seem to win :)
Cheers,
Clint