Hi.
1. I found that some events in WinformsMap do not fire. Please check them.
- LayerDrawing
- OverlaysDrawing
2. I tried to use NativeImage property in OverlayDrawingEventArgs.
[private void map_OverlayDrawing(object sender, ThinkGeo.MapSuite.DesktopEdition.OverlayDrawingEventArgs e)]
But the size of the NativeImage bitmap is different from the size of the map control. Why is it like this? and How can I get the exact visible region in the map control? What I want to do is drawing graphics with GDI+, and I want to avoid making a custom layer.
Bitmap b = (Bitmap)e.NativeImage;
Graphics g = Graphics.FromImage(b);
Console.WriteLine("Width {0} Height {1}", b.Width, b.Height);
3. what's the difference between OverlayDrawing event and LayerDrawing event? Could you explain the basic concept of Overlay and Layer?