The RadMap supports two ways to align FrameworkElement around the location.
The first one is using of VerticalAlignment and HorizontalAlignment properties.
HorizontalAlignment.Right (default) - the element is located to the right of the location.
HorizontalAlignment.Left - the element is shifted to the left of the location.
HorizontalAlignment.Center - the element is centered over the location.
VerticalAlignment.Bottom (default) - the element is located at the bottom of the location.
VerticalAlignment.Top - the element is shifted to the top of the location.
VerticalAlignment.Center - the element is centered over the location.
The second approach is using of the HotSpot definition. The HotSpot can be defined for the whole element as well as for any children inside. Hot spot is a position inside or outside the element which is bound to the geographical location is specified for the framework element. You can see how it can be implemented in our RadMap demo:
For more information please see the Using of the Hot Spot documentation topic:
If you use the MapEllipse shape, then you can use the following sample method to get centered ellipse:
MapEllipse CreateMapEllipseByCenter(Location center,
MapEllipse ellipse =
ellipse.Width = width;
ellipse.Height = height;
Size degreeSize = radMap.GetLatitudeLongitudeSize(center, width, height);
Location location =
Location(center.Latitude + degreeSize.Height / 2d,
center.Longitude - degreeSize.Width / 2d);
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items