<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY defanghtml_style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2>Robert, </FONT></SPAN></DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff size=2>I
tried to play with an example to get the substitution to work by just setting
the feature text or layer text, but I got parse errors. Those params may
not be available for substitution.</FONT></SPAN></DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff size=2>My
quick solution would be to create both the feature and it's text on the
fly. If you were setting the location for the title in the map file, I am
guessing that you can hardcode it in the URL that requests the
map.</FONT></SPAN></DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff size=2>Here
is an example that does work: </FONT></SPAN></DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff size=2>The
URL:</FONT></SPAN></DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff size=2># to
create a new point feature<BR><A
href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/workshop08/testPoint.map&mode=map&map.layer[howdy]=FEATURE+POINTS+0+0+END+TEXT+%27Goodbye%20World%27+END">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/workshop08/testPoint.map&mode=map&map.layer[howdy]=FEATURE+POINTS+0+0+END+TEXT+%27Goodbye%20World%27+END</A><A
href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/workshop08/testPoint.map&mode=map&map.layer[howdy]=FEATURE+POINTS+0+0+END+TEXT+%27Hello%20World%27+END"></A></FONT></SPAN></DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff size=2>Here
is the map file text:</FONT></SPAN></DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2>MAP</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff size=2>
NAME 'hello_world'<BR> SIZE 500 500<BR> IMAGECOLOR 143 188
143<BR> EXTENT -200 -200 200 200<BR> <BR>LAYER<BR> NAME
"howdy"<BR> STATUS DEFAULT<BR> TYPE
ANNOTATION<BR> FEATURE<BR> POINTS<BR> 0
0<BR> END<BR> #TEXT 'Hello
World'<BR> END<BR> CLASS<BR> LABEL<BR> TYPE
BITMAP<BR> COLOR 0 0
0<BR> END<BR> END<BR>END <BR>
</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff
size=2>END # end of map<BR></FONT></SPAN></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Robert
Sanson<BR><B>Sent:</B> Sunday, September 28, 2008 4:09 PM<BR><B>To:</B>
mapserver-users@lists.osgeo.org<BR><B>Subject:</B> RE: [mapserver-users]
Including a variable title on a map?<BR><BR></FONT></DIV>
<DIV>OK - thanks for the hints. I can now get a static string on my map as
annotation, but I am still struggling to modify this via the URL. My map file
snippet is:</DIV>
<DIV> </DIV>
<DIV> LAYER<BR> NAME fid<BR> STATUS ON<BR> TYPE
annotation<BR> TRANSFORM false<BR> FEATURE<BR>
POINTS<BR> 600 20 #this is the position of the
text in image coordinates (pixels)<BR>
END<BR> TEXT "úrmid%"<BR> END <BR>
CLASS<BR> LABEL #defines the font, colors etc. of the
text<BR> FONT
"arial"<BR> TYPE
TRUETYPE<BR> SIZE
14<BR> BUFFER
1<BR> COLOR 255 0
0<BR> OUTLINECOLOR 255 255 255
#--Halo<BR> FORCE TRUE<BR>
END<BR> END <BR> END</DIV>
<DIV> </DIV>
<DIV>My URL contains this section:</DIV>
<DIV> </DIV>&map.layer[fid].feature[0].TEXT=AS00001
<DIV> </DIV>
<DIV>I have tried with and without quotes around the TEXT, and also with and
without feature[0].</DIV>
<DIV> </DIV>
<DIV>Any assistance appreciated.</DIV>
<DIV> </DIV>
<DIV>Robert Sanson<BR><BR>>>> "Fawcett, David"
<David.Fawcett@state.mn.us> 26/09/2008 1:35 a.m. >>><BR></DIV>
<DIV><DEFANGHTML_SPAN class=948393113-25092008>If you want to allow the title
string to be passed through the URL, you can use URL Configuration changes to
pass the text in. </DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=948393113-25092008></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=948393113-25092008>Take a look at this document
(if you are using MapServer 5.x): <A
href="http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT">http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT</A></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=948393113-25092008></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=948393113-25092008>Scroll down to the section on
URL configuration changes. Take a look at example 3. I am not sure
if you can pass in just the text, or if you will need to pass in the feature
coords and the text. </DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=948393113-25092008></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=948393113-25092008>Combine this with the example
that Jukka pointed you to and you should be set.</DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=948393113-25092008></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=948393113-25092008>David.</DEFANGHTML_SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>-----Original
Message-----<BR><B>From:</B> mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of
</B>Rahkonen Jukka<BR><B>Sent:</B> Thursday, September 25, 2008 1:36
AM<BR><B>To:</B> Robert Sanson;
mapserver-users@lists.osgeo.org<BR><B>Subject:</B> Re: [mapserver-users]
Including a title on a map?<BR><BR></DIV>
<DIV dir=ltr align=left><DEFANGHTML_SPAN class=401373406-25092008>Perhaps
you could see if this copyright layer document points to right
direction?</DEFANGHTML_SPAN></DIV>
<DIV dir=ltr align=left><DEFANGHTML_SPAN
class=401373406-25092008></DEFANGHTML_SPAN></DIV>
<DIV dir=ltr align=left><DEFANGHTML_SPAN class=401373406-25092008><A
href="http://mapserver.gis.umn.edu/docs/faq/copyright-layer">http://mapserver.gis.umn.edu/docs/faq/copyright-layer</A></DEFANGHTML_SPAN></DIV>
<DIV> </DIV>
<DIV><DEFANGHTML_SPAN
class=401373406-25092008></DEFANGHTML_SPAN>-<DEFANGHTML_SPAN
class=401373406-25092008>Jukka Rahkonen-</DEFANGHTML_SPAN><BR></DIV>
<BLOCKQUOTE dir=ltr
defanghtml_style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=fi dir=ltr align=left>
<HR tabIndex=-1>
<B>Lähettäjä:</B> mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta </B>Robert
Sanson<BR><B>Lähetetty:</B> 25. syyskuuta 2008
7:02<BR><B>Vastaanottaja:</B>
mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> [mapserver-users]
Including a title on a map?<BR><BR></DIV>
<DIV></DIV>
<DIV>Is it possible to print a title on a map? I would like to be able to
send a variable on the URL containing a string to be used as a title to
embed into the returned image in a particular location.</DIV>
<DIV> </DIV>
<DIV>I am using Javascript to formulate a CGI request for a PDF output,
using mode=map.</DIV>
<DIV> </DIV>
<DIV>Many thanks,</DIV>
<DIV> </DIV>
<DIV>Robert Sanson</DIV><BR><BR>
<TABLE style="COLOR: black" bgColor=white>
<TBODY>
<TR>
<TD><BR>------------------------------------------------------------------<BR>The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<BR>------------------------------------------------------------------</TD></TR></TBODY></TABLE><BR><BR>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has
been scanned for malware by SurfControl plc. </FONT><A
href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff"
color=#000000>www.surfcontrol.com</FONT></A></P></BLOCKQUOTE></BLOCKQUOTE><BR><BR><FONT
style="BACKGROUND-COLOR: #ffffff">
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">Click <A
href="https://www.mailcontrol.com/sr/8KBuz0TuG3PTndxI!oX7UihQAH2Wln+Dl3nxVTW8QEzLdM2kKMnUZ86pZht1Q5VlAx1tJ6swZg7wFL4l1WzKMQ==">here</A>
to report this email as spam.</FONT></P></FONT><BR><BR>
<TABLE style="COLOR: black" bgColor=white>
<TBODY>
<TR>
<TD><BR>------------------------------------------------------------------<BR>The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<BR>------------------------------------------------------------------</TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>