Hi again,

Ah, found that I needed to use an undocumented clause when setting the display for a 
thematic layer.

    Set Map (Window W_id) Layer L_name Display VALUE

will display the thematic layer + legend, whereas

    Set Map (Window W_id) Layer L_name Display Graphic

will only display the thematic layer, and not the legend.

Problem was, I was looking for a legend setting to do the trick, not a map/layer 
setting.

Best regards/Med venlig hilsen
Lars V. Nielsen
GisPro, Denmark
http://www.gispro.dk/
----- Original Message ----- 
From: "Lars V. Nielsen (GisPro)" <[EMAIL PROTECTED]>
To: "MAPINFO-L Mailinglist" <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 10:55 AM
Subject: MI-L MB: Thematic legend and turning layers on/off


Hi,

While adding a "day splitting" function to a MapBasic application, I've run into a 
strange behaviour in Pro 7.5.

The generated queries are added as layers, and all are thematicized. This works 
perfectly, and the legend shows the relevant
thematic definitions for all added thematic layers.

However, I've also added a function to turn layers on/off (i.e a series of "Set Map 
Layer Display xxx"), but every time I use it,
the legend is cleared although thematic layers are displayed.

Only after turning the displayed layers off and then on in the layer control, the 
legend window shows the correct (and customized)
thematic definition for the layer.

Does anyone have an explanation for this behaviour, and maybe even an idea for a 
work-around ?

Best regards/Med venlig hilsen
Lars V. Nielsen
GisPro, Denmark
http://www.gispro.dk/


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 13818



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 13819

Reply via email to