Creating Legends in a Layout Window - 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

When a map is embedded in a Layout window, any legends you create for the map are also placed in the same Layout window. You can only create one full set of legends for a map. A full set includes one legend for each layer in the map. If there are multiple Legend windows for one map, only frames from the first Legend window created for the map are placed in the layout.

Some of the clauses in the Create Designer Legend statement syntax do not apply when creating a legend frame for a map embedded within a Layout window. The Window Title, and Legend Text Frame clauses are ignored.

If you use the Create Designer Legend statement more than once for the same map in a Layout window, you will see a message stating that the map already contains one or more legends. Use the Add Designer Frame statement instead.