Knowledge Base Article
KB10678 - Rendering labels and other map features based on scale/zoom levels.
The appearance of labels, symbols, or vector objects on the map, can be set to be rendered differently (label size, font, color, outline, etc.), or not rendered at all, based on scale ranges, i.e., zoom level ranges, using the Section feature within the comprehensive visual layer properties control. The visual layer properties control is a feature of the TatukGIS Developer Kernel, Internet Server, Editor, and free Viewer products.
The procedure is as follows:
- Double click on the subject layer in the Legend panel to open the layer properties window.
- Select the Section tab window within the layer properties window.
- Zoom in to the level at which you want to start rendering the labels in a particular manor.
- Click on the ' + ' button near the bottom of the Section tab window to create a new section. (Do not remove the default section, which is typically named Visible.)
- Click on the Minimum scale and/or the Maximum scale settings as necessary to define the scale range for which the special rendering instructions are to be applied.
- With the newly created Section near the bottom of the window highlighted, select the Label tab and specify how the labels are to be rendered at the zoom levels that are within the specified scale range. For example, to change the size of the text in the labels, adjust the label font size setting.
- Click on the OK button to apply the changes and to close the layer properties window or, if required, return to the Section tab and click on the "+" button near the bottom of the Section window to create the next section.
Multiple sections based on multiple scale ranges can be set up in this way to customize any aspect of the vector map rendering based on the zoom level. For zoom level settings, important is that the top most zoom section has a maximum scale setting and the bottom most zoom section has a minimum scale setting. Any sections in the middle must have both a maximum and minimum scale setting to define zoom range for which that section is applicable.
Of course, the scale ranges can be applied in combination with attribute queries. Refer to the logical query feature in the Sections tab window. In this way, the render settings can be specific to a zoom level (scale range) but also limited to, for example, only the objects in the map layer with a particular attribute value.
Refer to the on-line Editor/Viewer tutorials and the Editor/Viewer helpfiles for more help with the use of the Section feature.
Created: 2006-02-08, Modified: 2011-08-24
|