Settings That Have a Permanent Effect on a Map Layer - 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

The Default Zoom clause is a special clause that modifies a table, rather than a Map window. Use the Default Zoom clause to reset a table's default zoom distance and center position settings to the window's current zoom and center point.

Every mappable table has a default zoom distance and center position. When the user first opens a Map window, MapInfo Pro sets the window's initial zoom distance and center position according to the zoom and center settings stored in the table.

If a Set Map...Layer statement includes the Default Zoom clause, MapInfo Pro stores the Map window's current zoom distance and center point in the named table. For example, the following statement stores the Map window's zoom and center settings in the table that comprises the first map layer:

Set Map Layer 1 Default Zoom 

The Default Zoom clause takes effect immediately; no Save operation is required.

Examples

The following statement turns on the display of arrows, centroids, and nodes for layer 1:

Set Map 
Layer 1 Arrows On Centroids On Nodes On

The following statement displays layer 1 in its default style:

Set Map 
	Layer 1 Display Graphic