This project has moved and is read-only. For the latest updates, please go here.

Map Primitives

Oct 4, 2012 at 9:33 AM

Fist of all, i must say this is a great map control. The best WPF integration I've seen to date.

I was wondering about map geometric primitives? Is it possible to add for example a circle on the map, and let the circle stay the same size no matter the zoom level.

In other words: Is it possible to draw primitives based on coordinates rather than pixels.




Oct 31, 2012 at 2:02 PM

There are several ways to achieve that.

  • Pushpin with an appropriate Style
  • MapItem with an appropriate Style, as shown in SampleApplication. There are in fact already circles.
  • A simple Path object with the MapPanel.Location attached property set, and proper alignment as shown below.
<Path Fill="#7FFFFFFF" map:MapPanel.Location="53.5,8.2" HorizontalAlignment="Left" VerticalAlignment="Top">
        <EllipseGeometry RadiusX="20" RadiusY="20"/>