<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY defanghtml_style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<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 bgcolor=white style="color:black"><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></table></BODY></HTML>