Hello,
I'm having some troubles getting maps into the new layout through Mapbasic.
The best approach seems te be to first create an empty frame (or using the clear to command to make it so) & then add maps to it.
This i can do using the Map From ... into window LayoutID ID x command.
I do not know how to alter the layers in the map frame using the set map command, as i have no way to find out the windowID of the map frame in the layout.
Any pointers how to query a specific map frame ID?
I've tried using the LayoutItemInfo() function with LAYOUT_ITEM_INFO_WIN as attribute, which should return this ID, yet it returns -1.
No idea what that stands for.
Best regards
Pieter