radioman / greatmaps

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

Drag map inside Marker #69

Closed NJSFC closed 6 years ago

NJSFC commented 7 years ago

First i want to Thank you for this great control

As you can see this is wrte in bad english i hope you understand it.

Im using the WindowsForms version of your control

I have created a custom marker based on your GMapMarkerRect example.

I use it to paint some map images on top of the main map with transparecy , and this is working perfect. The Size of the marker is scaled acording to the current map zoom , i disalow the marker move possibility, because the maps are locked to their cordinates and so far the the result is perfect.

So far a didnt changed anything in your Core libs, I just piked your Windows.Forms.Demo and work from there.

Now i come to point where i need to allow the user to drag the map while inside my marker ( The marker can became very big depending on the current zoom)

I follow your code and figure that in the core classes we cant drag the main map inside a marker because the mouse is over the marker (The only way is to set IsHitTestVisible to false), i cant do that becausei stiil need to check all related Marker events.

Is there a proper way to allow the map drag inside a marker , or do i need change the code in the GMap.NET.WindowsForms lib to allow it?

PS: Just a small note The Core Offset() / DragOffset() ignores MapBounds