radioman / greatmaps

GMap.NET - Great Maps for Windows Forms & Presentation
916 stars 410 forks source link

Bearing #94

Open PetrBrotanek opened 6 years ago

PetrBrotanek commented 6 years ago

Hello, I'm exploring GMap.NET and thank you for it. Everything worked well until I started trying to rotate the map (bearing). Zooming with the mouse wheel works strangely when the rotation is nonzero. There is an unexpected shift to another location. Also, markers rendered in the map do not hold their geographic position. When the zoom is changed, the marker is displayed elsewhere.

Perhaps the rotation has been added to the component additionally and it was not completely finished. I've been testing WindowsForm, but it's just the same in the WPF. Do you have a similar experience? I am surprised that I have found nothing on this topic anywhere.

Toprakete commented 2 months ago

If you added a custom marker with an image, perhaps the marker is not positioned correctly. If the marker image has a width of 60, image position must be set to -30 to center, same with height. Bearing is around the 0,0 and image starts at 0,0 , too Oh, it's old