This project has moved. For the latest updates, please go here.

Anchor point for MapItem

Jun 10, 2014 at 1:12 PM
Hi

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!
Coordinator
Jun 10, 2014 at 1: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 2: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
Coordinator
Jun 10, 2014 at 2:53 PM
Setting a (perhaps negative) Margin might be even simpler.