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

Anchor point for MapItem

Jun 10, 2014 at 2:12 PM

first of all, congrats and many thanks for this cool control! I switched from Bing Maps to your MapControl and love it so far. I only miss one feature which is setting the anchor point of a MapItem to its center. I know I could do it by hand using the ViewportPointToLocation and LocationToViewportPoint functions, respectively. But I wanted to ask if there already is another possibility of setting the anchor point to something else than the top left corner or if you happen to have it on your agenda?
Thanks for your great work. Hope to hear from you!
Jun 10, 2014 at 2:55 PM
You could simply set the MapItem's HorizontalAlignment and VerticalAlignment properties to something other than the default Left or Top.
Jun 10, 2014 at 3:18 PM
Thanks for your fast reply. Setting the Alignment indeed works for setting it to left/center/right/top/bottom. And I just figured that I can simply apply a rendertransform for defining pixel accurate offsets in any direction.

Cheers, blomquist
Jun 10, 2014 at 3:53 PM
Setting a (perhaps negative) Margin might be even simpler.