Enabling, Disabling, or Removing Overrides for Layer Labels - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

If multilabel overrides are defined for a layer, they are enabled by default.

To enable or disable label overrides for a layer, use the Label Override clauses with either the On or Off option.

To remove an existing label override definition for a layer, use Label Override Remove clause.

Syntax: enable or disable overrides

Set Map 
	[ Window window_id ] 
	[ Layer layer_id
		[ Label [ Overrides { On | Off } ] ] ]

Syntax: remove overrides

Set Map 
	[ Window window_id ] 
	[ Layer layer_id
		[ Label [ Override Remove { All | labeloverride_index 
			[ , labeloverride_index ... ] } ] ] ]

window_id is the integer window identifier of a Map window.

layer_id identifies which layer to modify; can be a SmallInt (for example, use 1 to specify the top map layer other than Cosmetic) or a string representing the name of a table displayed in the map.

labeloverride_index is an integer index (1-based) for the override definition within the label. Each label override is tied to an zoom range and is ordered so that the smallest zoom range value is on top (index 1).

For more information about style overrides for layers, see Adding Overrides for Layer Labels and Modifying Layer Label Overrides. See also, LabelOverrideInfo( ) function.

Example

The following examples remove styles:

Set Map Layer 1 Label Override Remove 3
Set Map Layer 1 Label Override Remove All