MapEllipse or HotSpot?

2 posts, 1 answers
  1. Mrn
    Mrn avatar
    29 posts
    Member since:
    Apr 2011

    Posted 08 Jun 2011 Link to this post


    I want to be able to get latitude and longitude values when clicking any point on the map, and to show an ellipse around the point that has been clicked. I could not make clear how can I achieve this reading the documentation, since I need to work with latitude and longitude values and I managed to do that with a MapEllipse but it is not centered on the point and, as I read, HotSpots do not make use of a location, could anybody what can I do to achieve what I am trying to do? I'd also say that I am doing all of this in code-behind.

  2. Answer
    Andrey avatar
    1681 posts

    Posted 10 Jun 2011 Link to this post

    Hello Mrn,

    The HotSpot doesn't work for map shapeobjects. You can use MapPath with MapEllipseGeometry instead of MapEllipse. MapEllipseGeometry uses its center as object location. For example:

    private void AddEllipse(Location location)
        MapEllipseGeometry geometry = new MapEllipseGeometry()
            Center = location,
            RadiusY = 100,      // Miles or kilometers
            RadiusX = 100       // Miles or kilometers
        MapPath path = new MapPath()
            Fill = new SolidColorBrush(Colors.Blue),
            Data = geometry

    All the best,
    Andrey Murzov
    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
Back to Top