ClemensFischer / XAML-Map-Control

XAML Map Control Library
Microsoft Public License
203 stars 59 forks source link

Transforming a MapShape #22

Closed fsaux closed 6 years ago

fsaux commented 6 years ago

Hi Clemens,

Not an issue, just wanted your advice. I'm deriving a class from MapShape which I'm intending to transform (Rotate and Scale centered on Location). I've tried several things unsuccessfully like applying a RenderTransform(angle) or RenderTransform(angle, Location.Longitude, Location.Latitude). Looks like my shape is not rotating around the correct center.

Any clues?

Thanks, Fernando.

ClemensFischer commented 6 years ago

Don't use a MapShape for point-like objects that are positioned at a specific Location. Instead use any UI element (e.g. Path) and set the MapPanel.Location attached property for positioning.