Here's what I'm trying to accomplish: I have an app that needs to show the user's current location on a map (determined using an attached GPS puck. The library I'm using provides me the latitude, longitude and accuracy (in meters). I will also want to place other pins on the map (lat, long only). I want to display a dot on the map that represents the lat/long, with a circle around it, the width of which displays the accuracy of the reading.
So, I will have an observable collection of objects that have lat, long and accuracy. I've been trying to follow this page in the documentation:
http://docs.telerik.com/devtools/wpf/controls/radmap/features/visualization-layer/data-binding.html
but this is pixel-based sizing. I want the ellipse I draw to be a certain height/width determined by a distance on the map. I have the radius in meters, but I also have a function that will convert it in to a value that represents the degrees of latitude/longitude, which works in the EllipseData object. However, since I'm databinding, the EllipseData object can't be used in the items template (not a Dependency object) and even still, the properties for width and height can't be bound as they aren't dependency properties.
How can I specify a width/height of a data-bound ellipse in the information or visualization layers in meters (or degrees)? A related question that may be the solution is this: how can I determine the scale of the currently displayed map view-port? I could certainly use a value converter or attached property or something to figure out the pixel width from there (though I'd prefer a simpler way).
Thanks in advance!
Adam
So, I will have an observable collection of objects that have lat, long and accuracy. I've been trying to follow this page in the documentation:
http://docs.telerik.com/devtools/wpf/controls/radmap/features/visualization-layer/data-binding.html
but this is pixel-based sizing. I want the ellipse I draw to be a certain height/width determined by a distance on the map. I have the radius in meters, but I also have a function that will convert it in to a value that represents the degrees of latitude/longitude, which works in the EllipseData object. However, since I'm databinding, the EllipseData object can't be used in the items template (not a Dependency object) and even still, the properties for width and height can't be bound as they aren't dependency properties.
How can I specify a width/height of a data-bound ellipse in the information or visualization layers in meters (or degrees)? A related question that may be the solution is this: how can I determine the scale of the currently displayed map view-port? I could certainly use a value converter or attached property or something to figure out the pixel width from there (though I'd prefer a simpler way).
Thanks in advance!
Adam