Jerry,
This is how I simulated it in the MapBasic window. Frontwindow contains
already 2 layers; I want to add "test1" at the bottom
set map window frontwindow() redraw off
add map window frontwindow() layer test1
set map window frontwindow() order 2,3,1
set map window frontwindow() redraw on
The reorder statement will of course depend upon the number of layers in the
window. As it can be variable, I think you should replace the order
statement by a dynamic command such a:
dim nlayers as smallint
nlayers=mapperinfo(frontwindow(),9)
dim acom as string
acom="set map window frontwindow() order "
dim k as smallint
for k=2 to nlayers
acom=acom+str$(k)+","
next
acom=acom+"1"
run command acom
Jacques
Jacques PARIS
e-mail (>>>19.12.00) [EMAIL PROTECTED]
For MapInfo support, see the Paris PC Consult enr. site at
http://www.total.net/~rparis/gisproducts.htm
For MapBasic questions see the J.Paris site at
http://www.total.net/~jakesp/index.htm
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of OSullivan.
Jerry ESBI
Sent: January 16, 2001 4:49 AM
To: '[EMAIL PROTECTED]'
Subject: MI-L Adding Layers in MapBasic
Morning List Users,
Does anyone know how to add a layer to a map window through mapbasic -
making sure it is placed at the bottom of the map.
Thanks in Advance,
Jerry
* ** *** ** * ** *** ** * ** *** ** *
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This message has been scanned for viruses.
* ** *** ** * ** *** ** * ** *** ** *
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.