Something a Bit More Advanced! Streamline Layer Control with Multiple Style Overrides

User-added image
User-added imageSomething a Bit More Advanced! Streamline Layer Control with Multiple Style Overrides
An Easy Tip article covers the basics on using Zoom Layering. This article takes things further with multiple style overrides.

Multiple Style Overrides

Occasionally it is necessary to have a layer appear in your map with a different appearance, at different zoom levels. For example, you might have cities appear as small points when you are zoomed out and as larger points when you are zoomed in. As a second example, you may also change the width of a motorway or major road as you zoom in and zoom out. 

User-added image
In these two screen shots, the same point layer is displayed at different sizes as you zoom in or out. Map data ©TomTom BV. 

The Easy Way or the Hard Way

There is a way to adjust the display of a layer as you zoom in and out which involves adding the same layer into the map window multiple times. This method works but it adds clutter to the Layer Control dialog box. For anyone using MapInfo Pro v10.5 or later there is a better way. These versions of MapInfo Pro offer the ability to apply multiple style overrides to the same layer.

Overrides are easy to create, simply right-click on the layer in Layer Control.

User-added image
Map data is MapInfo StreetPro Russia ©TomTom BV.

The screen shot below provides some info on how to use the Display Overrides. 

User-added image

Labels that get larger as you zoom in...and smaller when you zoom out... 

You may have noticed the Add a Label Override command in the right-click menu. This can be used to specify different sizes and styles of labels to appear at different zoom levels. 

User-added image
Map data is MapInfo StreetPro UK ©TomTom BV.

Stacked Styles - explore new options for styling your maps ... and a further way to unclutter Layer Control

A fairly common technique to get the desired look of a map is to use the same layer with different styles. For example, the roads in the screen shot below are given a double line effect by using the street layer twice. One layer is a thicker red line and the second is a thinner white line.

As with multiple style overrides, this can be accomplished in Layer Control by adding the map layer to the map multiple times and setting different styles for each Layer. But, once again this causes unnecessary clutter. There is the further issue that if this technique is used it is difficult to see what the desired style will be for the map layer. Layer Control does not provide a good preview because the different styles are in different layers.

An alternative is available. For points, lines and region layers, there is an option to use Stacked Styles. The name pretty much describes the capability. You can easily specify multiple object styles to represent a single layer. 

See the screen shot below for an example. 

User-added image
To use the Stacked Styles option, in Layer Control, choose the tic box as above. Map data is from WorldInfo© Pitney Bowes Software.

Mix it all up.

Between the Display Overrides, Label Overrides and Stacked Styles you have a powerful combination of capabilities. These capabilities can all be used in combination with each other.

Article by Tom Probert, Editor of "The MapInfo Pro" journal 

When not writing articles for "The MapInfo Pro", Tom enjoys talking to MapInfo Pro users at conferences and events. When not working he likes to see movies with car chases, explosions and kung-fu fighting.
UPDATED:  July 4, 2017