Hi David!

I would have used something like

Run Command WindowInfo(winid, WIN_INFO_CLONEWINDOW)

which to my knowledge also clones present thematic layers.
You can test it from the MapBasic window by entering

Run Command WindowInfo(FrontWindow(), 15)

when you have the map window to clone up front.
Otherwise you will need to capture the window ID, preferably at its moment of creation.

H�lsning / Best regards Mats.E
________________________
FB Engineering AB
S�dra F�rstadsgatan 26
211 43 Malm�

Tel: 040-660 25 50
Mobil: 0705-27 60 27
Fax: 040-660 25 99
[EMAIL PROTECTED]
www.fbe.se
Inactive hide details for "HAYCRAFT,David" <[EMAIL PROTECTED]>"HAYCRAFT,David" <[EMAIL PROTECTED]>


          "HAYCRAFT,David" <[EMAIL PROTECTED]>

          2005-04-22 02:27


Till

<[email protected]>

Kopia


�rende

MI-L Cloning Map Windows using MapBasic

Dear MAPINFO-L

My agency has developed a MapBasic 7.5 program to generate a series of
geographic state-based map layouts starting from a specified map
window-legend window pair.

Now we'd like to add a new option to this program to generate a single
map layout containing a main map  surrounded by several "inset" maps
each showing a zoomed-in portion of the main map.  In this case the
layout would contain a number of Frame objects, the Main Map Frame
linked to a map window with a wide-area view and each Inset Map Frame
linked to a cloned copy of the map window with its own zoomed-in view.

For sure, you can use MapBasic programmatically to  clone a non-thematic
map window. You do it layer by layer using LayerInfo() repeatedly to
find Display and Label properties of each "conventional" map layer,
then use Add Map and Set Map statements to create copies of each layer
and set the corresponding properties in the new copies.  

However, if the map contains any thematic layers, then this procedure
breaks down, because MapBasic doesn't seem to have a ThematicLayerInfo()
function to expose the properties of a thematic layer so that they can
be reproduced programmatically in a new map.

Question: Is there a general MapBasic procedure to "clone" an existing
thematic map window so that the cloned copy can be zoomed in without
disturbing the view parameters (centre, zoom) of the main map.

David Haycraft
GIS Manager
Research & Data Analysis Branch
Australian Federal Dept of Employment and WorkPlace Relations (DEWR)


Notice:
The information contained in this e-mail message and any attached files may
be confidential information, and may also be the subject of legal
professional privilege.  If you are not the intended recipient any use,
disclosure or copying of this e-mail is unauthorised.  If you have received
this e-mail in error, please notify the sender immediately by reply e-mail
and delete all copies of this transmission together with any attachments.



Reply via email to