zoom entire layer in layout map window

145 views
Skip to first unread message

Globy

unread,
Dec 7, 2017, 10:16:16 AM12/7/17
to MapInfo-L
Hi everyone,


I want to make one layout and always change the map frame in that layout.  It works, but how can I zoom to a layer in the layout window.


I use a create frame statement as this under my sub MakeLayout

Create Frame (0.984252,0.787402) (7.28356,8.267712)  
    Pen (1,2,0)
    Brush (2,16777215,16777215)
    Title ""

and I fill it by using the statements underneath in the sub where I make my map: 

Set designer frame window uniqueLayoutWin ID 4 Clear 
Set designer frame window uniqueLayoutWin ID 4 from window MapID

Telling to set map zoom entire layer X in the sub where I make my map do not give me a view of the entire layer X in my layout.
How can I zoom to a map layer in the map frame of my layout? 

Thanks,

Lien

Bacon, Tom

unread,
Dec 8, 2017, 3:14:11 AM12/8/17
to mapi...@googlegroups.com

That is probably because your map and your layout have a different aspect ratio. You can either calculate the difference and adjust your zoom or you can change the dimensions of your map window or layout frame to match the aspect ratio of the other.

 

Tom Bacon BSc

Engineer (Wastewater)

 

../../../_New%20Visual%20Identity/Templates/Email%20Signature/wsp_RGB.png

T +44 (0) 1444 472380

 

37-39 Perrymount Road

Haywards Heath, West Sussex

RH16 3BN

 

wsp.com

 

Confidential

This message, including any document or file attached, is intended only for the addressee and may contain privileged and/or confidential information. Any other person is strictly prohibited from reading, using, disclosing or copying this message. If you have received this message in error, please notify the sender and delete the message. Thank you.

 

WSP UK Limited, a limited company registered in England & Wales with registered number 01383511. Registered office: WSP House, 70 Chancery Lane, London, WC2A 1AF.  

--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Globy

unread,
Dec 8, 2017, 4:52:08 AM12/8/17
to MapInfo-L
Ok, that will work for one region, but when I use another region, the aspect ratio will be different...




Bacon, Tom

unread,
Dec 8, 2017, 4:57:50 AM12/8/17
to mapi...@googlegroups.com

I don’t understand why the aspect ratio would be different, it is simply defined by the width and height of the map window. The zoom is directly relative to the width, if I remember rightly, of the map window. You may need to adjust your zoom level for each different region you are wanting to display in order to fit it into the map window but you shouldn’t need to change the actual size of the map window itself.

 

Tom Bacon BSc

Engineer (Wastewater)

 

../../../_New%20Visual%20Identity/Templates/Email%20Signature/wsp_RGB.png

T +44 (0) 1444 472380

 

37-39 Perrymount Road

Haywards Heath, West Sussex

RH16 3BN

 

wsp.com

 

Confidential

This message, including any document or file attached, is intended only for the addressee and may contain privileged and/or confidential information. Any other person is strictly prohibited from reading, using, disclosing or copying this message. If you have received this message in error, please notify the sender and delete the message. Thank you.

 

WSP UK Limited, a limited company registered in England & Wales with registered number 01383511. Registered office: WSP House, 70 Chancery Lane, London, WC2A 1AF.  

 

--

Reply all
Reply to author
Forward
0 new messages