Hi.
I am trying with RadMap to trace a route on map.
When drawing the MapPolyline all seems ok. However I am trying to draw shapes on start and on end of route and when doing so this shapes don't seem to be same location that points in line (althought I know they are).
I also have changed HotSpot of ellipses to center it:
Also have seen someone complaining that using hotspot could be bugged and that latest night builds would have it fixed. Im my case this didn't happen.
Is there some kind of procedure needed to set it right or am I doing something wrong?
Please help.
Thanks
I am trying with RadMap to trace a route on map.
When drawing the MapPolyline all seems ok. However I am trying to draw shapes on start and on end of route and when doing so this shapes don't seem to be same location that points in line (althought I know they are).
var lastGeo = geos.Last();
var endEllipse = new MapEllipse()
{
Location = lastGeo.Location,
Width = 3,
Height = 3,
Fill = GetBrushFromHexString("#33FF33"),
StrokeThickness = 2,
Opacity = .5
};
MapLayer.SetHotSpot(endEllipse, GetHotspot());
SpeedLayer.Items.Add(endEllipse);
box = new TextBlock();
box.Text = temp.Location.ToString();
MapLayer.SetHotSpot(box, GetHotspot());
SpeedLayer.Items.Add(box);
I also have changed HotSpot of ellipses to center it:
private HotSpot GetHotspot()
{
var hotspot = new HotSpot();
hotspot.X = .5;
hotspot.Y = .5;
hotspot.XUnits = HotSpotUnit.Fraction;
hotspot.YUnits = HotSpotUnit.Fraction;
return hotspot;
}
Also have seen someone complaining that using hotspot could be bugged and that latest night builds would have it fixed. Im my case this didn't happen.
Is there some kind of procedure needed to set it right or am I doing something wrong?
Please help.
Thanks