Move DTED layer smothly
Comments
-
With the SDK you control the drawing code, so to add smooth dragging of the map you would need to render to a background bitmap, then handle dragging by bit-blitting that background bitmap by a different offset equal to the drag amount. Then when you release the mouse do a full redraw with the new bounding box as parameters to the GM_DrawLayerList function.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/ -
Mike
I used C# to do panning for BackgroundBitmap and when release the mouse i want to set new viewrect according to new offest of the image , How to translate the picxle rect to lonlat rect before i do full redraw
Thanks -
If you have the ground rectangle in lat/lon and the pixel rectangle you can calculate the size of each pixel on the ground. Then when you move the pixel rectangle just offset the corner locations based on how many pixels you moved the rectangle and how many degrees of longitude and latitude that offset amounts too based on your calculated degrees per pixel.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/
Categories
- 12.9K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 643 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 419 Projection Questions
- 829 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 180 Announcement and News
- 926 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 574 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website