Hi Dan:
A rough outline of what you could do is as follows:
Text annotation locations on a map can be "a coordinate and an alignment string
on map"
So if you want the coordinate at the centre of the map:
You could get the centre pixel via:
size = GetAbsoluteWindowSize()
Then convert to a coordinate:
MapPixelXYToCoord()
for use with:
AddAnnotation()
Stewart
Stewart J. Berry (BSc, MSc)
GIS Specialist
Phone: 617-527-4700
Fax: 617-527-5113
Maptitude Mapping Software
Caliper Corporation
1172 Beacon Street, Suite 300, Newton, MA, 02461-9926, USA
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of dpdifran
Sent: Monday, August 04, 2008 5:50 PM
To: [email protected]
Subject: [Maptitude] Map Title
Thanks Stewart!
I actually just thought of one more question...
Is there a way to generate a map title that can be displayed
directly on the map, in a constant location with respect to the
physical layout of the map (e.g., 2 inches from the top, etc.)?
While "AddAnnotation" ultimately does the job, I'd prefer a function
that associates text with a position on the layout, as opposed to a
longitude/latitude coordinate. (That way, I'd be able to both fiddle
around with a map's scope without having to worry about readjusting
the title's position, as well as use the same code for maps with a
different scope altogether.) Any ideas?
~Dan
--- In [email protected], "Stewart Berry" <[EMAIL PROTECTED]>
wrote:
>
> Hi Group:
>
> ShowArray() is a good way to get a general view of the contents of
a compound variable:
>
> ShowArray({GetMapScope()})
>
> However, there is a section in the Online Help called "Compound
Variables". This section lists the Valid Selectors. These could also
be used with a ShowArray() call:
>
> scp = GetMapScope()
> ShowArray({scp.center, scp.height, scp.width, scp.angle})
>
> Stewart
>
> Stewart J. Berry (BSc, MSc)
> GIS Specialist
> Phone: 617-527-4700
> Fax: 617-527-5113
> Maptitude Mapping Software
> Caliper Corporation
> 1172 Beacon Street, Suite 300, Newton, MA, 02461-9926, USA
>
>
>
>
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of dpdifran
> Sent: Monday, August 04, 2008 4:42 PM
> To: [email protected]
> Subject: [Maptitude] Compound Variables -- View Contents
>
> Hello,
>
> I was wondering if anyone is aware of a catch-all function, such
> as "ShowArray()" or "ShowMessage()" that displays the contents of
a
> compound variable? While I believe I've been able to grab a hold
of
> these variables with the various "Get" functions, I've been having
> trouble actually seeing their values. (At the moment, I'm
particularly
> interested in "scope" variables, so if such a catch-all function
> doesn't exist, it would also be helpful to see a "Show" function
that
> applies specifically to scope variables.)
>
> Thanks!
> Dan
>