This is a migrated thread and some comments may be shown as answers.

MapEllipse or HotSpot?

1 Answer 89 Views
Map
This is a migrated thread and some comments may be shown as answers.
Mrn
Top achievements
Rank 1
Mrn asked on 08 Jun 2011, 12:11 PM
Hello,

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.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 10 Jun 2011, 09:43 AM
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
    };
  
    this.informationLayer.Items.Add(path);
}


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
Tags
Map
Asked by
Mrn
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or