To Draw a circle in RadMap you can use one of the following approaches:
- Use FrameworkElement (Ellipse or Path or other) and place it in Information Layer
or Visualization layer. To Position it you should use the attached property MapLayer.Location:
The negative effect here is that the Width and Height are specified in pixels.
- Use MapShape Object in Information Layer. For example MapEllipse
. Width and Height are dependent on the current distance unit in the map - Mile or kilometer.
- Use ShapeData objects in VisualizationLayer. For example EllipseData
. Widht and height are represented with spatial reference units (degrees by default).
In all the given solutions you need to manually calculate the location and width and height of the ellipse. Please keep in mind that the position / location is top-left oriented. In other word the top left point of the ellipse's bounding rectangle (which is somethind virtual) is used. This example is somehow similar to what you need, however we have no sample that automatically positions circle around certain hot spot.
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?
Telerik Feedback Portal
and vote to affect the priority of the items