Map title in Layout Template

127 views
Skip to first unread message

info searcher

unread,
Apr 9, 2010, 10:53:12 AM4/9/10
to MapInfo-L
Dear,

I have a question,

I want to print a Map Title in the upper left corner of my Layout
Template.

This is my method:
1) I bring the text string from a SQL table into Mapinfo. This is done
automatic.
2) I cannot code in MapBasic how to get this string placed into the
upper left corner.
However, I can already make the frame where my text should be.
I can also do this by manually replacing the text of the title, but I
want to do this automaticly

How to do this?


I hope you can help me.

Ti

unread,
Apr 12, 2010, 4:52:28 AM4/12/10
to MapInfo-L
Hi,

Have a look at the Create Text statement in MapBasic help, this will
allow you to create a text object in the layout.

Something along the lines of:
Create Text
Into Window layout_window_id
string_variable_pulled_from_sql
(x1, y1) (x2, y2)
Font...
etc...

The X & Y coords are float distances from the top left corned in
whichever coordinate system you've specified for your layout. The
first xy contain the important measurements, the second set aren't so
important - just make sure they leave enough space for the text to
appear within their bounds.

Ti.

geomatics.ch

unread,
Apr 12, 2010, 6:13:32 PM4/12/10
to MapInfo-L

You may also want to check out GeoAS' MapPlot utility
http://www.geoas.de/pages/en/mapplot/easy-printplot.php
that allows for batch printing from templates and populates titles and
other annotations from attribute values.

Isabella

spatialpro

unread,
Apr 12, 2010, 8:56:14 PM4/12/10
to MapInfo-L
You could also try creating more sophisticated workspace templates.
The idea is that one workspace can call another workspace, this
enables the creation of complex template and the reuse of workspace
elements. See the link below for more details.

http://www.sgsi.com/MIUserGroup/WorEditing_PhilWoods/Workspace-Presentation.htm

Bill Thoen

unread,
Apr 12, 2010, 11:25:10 PM4/12/10
to mapi...@googlegroups.com
spatialpro wrote:
> You could also try creating more sophisticated workspace templates.
> The idea is that one workspace can call another workspace, this
> enables the creation of complex template and the reuse of workspace
> elements. See the link below for more details.
>
> http://www.sgsi.com/MIUserGroup/WorEditing_PhilWoods/Workspace-Presentation.htm
>
Good article revealing just enough about a technique that's very useful
in production mapping. Especially when the maps are a series of common
bases with varying thenes, or need to be done in different sizes and
absolutely, positively have to use consistent styling. You can do even
more with workspaces and workspace fragments than is covered here, but
if you "get it" the concept of having interchangeable workspace
fragments really can save you some time and improve map output quality
and capacity at the same time.

- Bill


info searcher

unread,
Apr 22, 2010, 6:18:11 AM4/22/10
to MapInfo-L
Thank you all.

The website
http://www.google.com/url?sa=D&q=http://www.sgsi.com/MIUserGroup/WorEditing_PhilWoods/Workspace-Presentation.htm&usg=AFQjCNHYOgsE48hjFdME5XxHWK4ZG2gfWQ
had the solution:
I have succesfully took a string and it now updates automatic:
---------------

Automatically update text elements on the layout.
With the use of MapBasic commands some map text fields can be updated
automatically to reflect current information.
To update the current date automatically change the layout text string
to use MapBasic commands.
Change:
Create Text
"Date: 07/03/2003"
(17.4257,30.5535) (22.5389,31.3201)
Font ("Arial",0,48,0
To:
Create Text
Str$(CurDate())
(17.4257,30.5535) (22.5389,31.3201)
Font ("Arial",0,48,0


On Apr 13, 5:25 am, Bill Thoen <bth...@gisnet.com> wrote:
> spatialpro wrote:
> > You could also try creating more sophisticated workspace templates.
> > The idea is that one workspace can call another workspace, this
> > enables the creation of complex template and the reuse of workspace
> > elements. See the link below for more details.
>
> >http://www.sgsi.com/MIUserGroup/WorEditing_PhilWoods/Workspace-Presen...
>
> Good article revealing just enough about a technique that's very useful
> in production mapping. Especially when the maps are a series of common
> bases with varying thenes, or need to be done in different sizes and
> absolutely, positively have to use consistent styling. You can do even
> more with workspaces and workspace fragments than is covered here, but
> if you "get it" the concept of having interchangeable workspace
> fragments really can save you some time and improve map output quality
> and capacity at the same time.
>
> - Bill

--
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To post to this group, send email to mapi...@googlegroups.com.
To unsubscribe from this group, send email to mapinfo-l+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mapinfo-l?hl=en.

Reply all
Reply to author
Forward
0 new messages