Rendering only labels?
Toni Heimala
Global Mapper User
Is it possible to render just the labels? Like GM_DrawFlags_HideLabels for DrawLayerList() but it would render only the labels and nothing else.
I need this because I render the whole part of the map in layers so I get two problems:
So my plan is to render:
I need this because I render the whole part of the map in layers so I get two problems:
- Grid has to be drawn after tiles are drawn (otherwise grid labels are on every tile) -> Grid is drawn over labels, which is not good.
- Labels near the edge of a tile are drawn on several tiles.
So my plan is to render:
- All tiles without grid and without labels.
- Grid for the whole display.
- Labels for the whole display.
Comments
-
There isn't a flag to draw just the labels. What you would have to do is spin through all of the vector features and set the drawing style to an empty/NULL style, then draw them resulting in just the labels.
Another option rather than tiling might be to use the latest v13.2 SDK release and the GM_DrawFlags_IncrementalRender flag to get updates as the map is drawn so you can copy the results to your screen DC for rendering. The C++ sample application in the latest SDK release now does this, including with a callback since the sample application uses a background bitmap for rendering.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
I tried using the IncrementRender flag but it seems that it is as slow if not slower than direct rendering and far from the speed of tiled rendering. Also disabling/enabling draw styles per render sounds slow but haven't tried it.
-
The IncrementalRender flag would not gain you any speed, in fact it will always be slightly slower as you are doing extra BitBlts throughout the draw to show what has been drawn so far. It just seems faster to users as they get updates throughout the process rather than having to wait until the end to see the results.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
Howdy, Stranger!
Categories
- 12.2K All Categories
- 5.3K Features Discussion
- 312 Downloading Imagery
- 1.2K Elevation Data
- 371 Georeferencing Imagery Discussion
- 580 GM Script Language
- 42 User Scripts
- 111 GPS Features
- 388 Projection Questions
- 788 Raster Data
- 1.3K Vector Data
- 6.4K Support
- 159 Announcement and News
- 881 Bug Report
- 554 SDK
- 1.1K Suggestion Box
- 3.6K Technical Support
- 520 Other Discussion
- 125 GIS Data Sources
- 26 Global Mapper Showcase
- 217 How I use Global Mapper
- 99 Global Mapper Forum Website