Ordered layer drawing
I have a list of vector and raster layers that I am trying to draw in a particular order using GM_DrawLayer. Because the layers are required to be drawn in a fixed order I am using GM_DrawLayer and not GM_DrawLayerList.
When a reduced opacity raster layer is drawn on top of a vector layer (containing point features) and the position of the point features change, the position of the point features are not updated when the layers are redrawn.
Is this expected behaviour and if so, is there a work around to get the layers to update? Is is possible to set draw flags when using GM_DrawLayer?
Thanks in advance,
sri
When a reduced opacity raster layer is drawn on top of a vector layer (containing point features) and the position of the point features change, the position of the point features are not updated when the layers are redrawn.
Is this expected behaviour and if so, is there a work around to get the layers to update? Is is possible to set draw flags when using GM_DrawLayer?
Thanks in advance,
sri
Comments
-
Sri,
I would suggest still using GM_DrawLayerList even if drawing one layer at a time, you can just pass in a list of one layer, or even just pass in a list with the layers ordered as you want them, rather than using the older GM_DrawLayer function that has less capabilities.
If you change the location of the vector data underlying a translucent layer, try using the GM_FlushLayerCache function to clear out any cache for the translucent layer so that it will be completely redrawn the next time.
I would also suggest using the latest SDK build from http://www.globalmapper.com/GlobalMapperSDK_v134_beta.zip as this didn't necessarily work correctly in all earlier builds.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Thanks for the advice Mike, that works just great.
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website