<!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>&nbsp;</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.&nbsp; 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>&nbsp;</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.&nbsp; 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>&nbsp;</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>&nbsp;</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&amp;mode=map&amp;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&amp;mode=map&amp;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&amp;mode=map&amp;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>&nbsp;</DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff 
size=2>MAP</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff size=2>&nbsp; 
NAME 'hello_world'<BR>&nbsp; SIZE 500 500<BR>&nbsp; IMAGECOLOR 143 188 
143<BR>&nbsp; EXTENT&nbsp; -200 -200 200 200<BR>&nbsp; <BR>LAYER<BR>&nbsp;NAME 
"howdy"<BR>&nbsp;STATUS DEFAULT<BR>&nbsp;TYPE 
ANNOTATION<BR>&nbsp;FEATURE<BR>&nbsp;&nbsp;POINTS<BR>&nbsp;&nbsp;&nbsp;0 
0<BR>&nbsp;&nbsp;END<BR>&nbsp;&nbsp;#TEXT 'Hello 
World'<BR>&nbsp;END<BR>&nbsp;CLASS<BR>&nbsp;&nbsp;LABEL<BR>&nbsp;&nbsp;&nbsp;TYPE 
BITMAP<BR>&nbsp;&nbsp;&nbsp;COLOR 0 0 
0<BR>&nbsp;&nbsp;END<BR>&nbsp;END<BR>END&nbsp;&nbsp;<BR>&nbsp; 
</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=292292613-29092008><FONT face=Arial color=#0000ff 
size=2>END&nbsp; # 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>&nbsp;</DIV>
  <DIV>&nbsp;LAYER<BR>&nbsp; NAME fid<BR>&nbsp; STATUS ON<BR>&nbsp; TYPE 
  annotation<BR>&nbsp; TRANSFORM false<BR>&nbsp; FEATURE<BR>&nbsp;&nbsp;&nbsp; 
  POINTS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600 20 #this is the position of the 
  text in image coordinates (pixels)<BR>&nbsp;&nbsp;&nbsp; 
  END<BR>&nbsp;&nbsp;&nbsp; TEXT "úrmid%"<BR>&nbsp; END&nbsp;&nbsp; <BR>&nbsp; 
  CLASS<BR>&nbsp;&nbsp;&nbsp; LABEL #defines the font, colors etc. of the 
  text<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT 
  "arial"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
  TRUETYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 
  14<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER 
  1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 
  0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 255 
  #--Halo<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE TRUE<BR>&nbsp;&nbsp;&nbsp; 
  END<BR>&nbsp; END <BR>&nbsp;END</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>My URL contains this section:</DIV>
  <DIV>&nbsp;</DIV>&amp;map.layer[fid].feature[0].TEXT=AS00001 
  <DIV>&nbsp;</DIV>
  <DIV>I have tried with and without quotes around the TEXT, and also with and 
  without feature[0].</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Any assistance appreciated.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Robert Sanson<BR><BR>&gt;&gt;&gt; "Fawcett, David" 
  &lt;David.Fawcett@state.mn.us&gt; 26/09/2008 1:35 a.m. &gt;&gt;&gt;<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.&nbsp; </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.&nbsp; Take a look at example 3.&nbsp; 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.&nbsp; </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&nbsp;see if this copyright layer document&nbsp;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>&nbsp;</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>&nbsp;</DIV>
      <DIV>I am using Javascript to formulate a CGI request for a PDF output, 
      using mode=map.</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Many thanks,</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Robert Sanson</DIV><BR><BR>
      <TABLE style="COLOR: black" bgColor=white>
        <TBODY>
        <TR>
          <TD><BR>------------------------------------------------------------------<BR>The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;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&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<BR>------------------------------------------------------------------</TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>