Nick,
Is the base map always the last layer in the map?
If not, you will have to do this in a small MapBasic application as you need to loop through all the layers.
You could create a small function that takes the ID of the window and loops through the layers. If a specific layer is found, the function returns a matching copyright text.
If it's always the last/bottom layer, you could do this using an IIf/Cond expression using the name of the bottom layer and let this return the matching copyright text.
Tile Server layers support adding a copyright text which will be shown in the lower right corner of the map window.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------
Original Message:
Sent: 03-13-2021 07:40
From: Nick Hall
Subject: Smart Text - layer info?
Hi,
a client of mine wishes to try and automate the correct copyright text being automatically added to a layout, based on one of three potential basemap layers being included on the map. Currently the users forget to change it and just use the last one they used rather than the correct one!!!
There was a discussion 18months ago about using column and layer info, etc but I'm not mapbasic skilled enough to alter it for the above task.
Any suggestion/examples to copy?
Thanks
Nick
------------------------------
Nick Hall
Mapchester LTD
nick.hall@mapchester.co.uk
------------------------------