[mapserver-users] Including a variable title on a map?

Robert Sanson SansonR at asurequality.com
Sun Sep 28 17:08:38 EDT 2008


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:
 
 LAYER
  NAME fid
  STATUS ON
  TYPE annotation
  TRANSFORM false
  FEATURE
    POINTS
      600 20 #this is the position of the text in image coordinates
(pixels)
    END
    TEXT "%farmid%"
  END   
  CLASS
    LABEL #defines the font, colors etc. of the text
      FONT "arial"
      TYPE TRUETYPE
      SIZE 14
      BUFFER 1
      COLOR 255 0 0
      OUTLINECOLOR 255 255 255 #--Halo
      FORCE TRUE
    END
  END 
 END
 
My URL contains this section:
 
&map.layer[fid].feature[0].TEXT=AS00001
 
I have tried with and without quotes around the TEXT, and also with and
without feature[0].
 
Any assistance appreciated.
 
Robert Sanson

>>> "Fawcett, David" <David.Fawcett at state.mn.us> 26/09/2008 1:35 a.m.
>>>
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.  
Take a look at this document (if you are using MapServer 5.x):
http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT

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.  
Combine this with the example that Jukka pointed you to and you should
be set.
David.


-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
Rahkonen Jukka
Sent: Thursday, September 25, 2008 1:36 AM
To: Robert Sanson; mapserver-users at lists.osgeo.org 
Subject: Re: [mapserver-users] Including a title on a map?

Perhaps you could see if this copyright layer document points to right
direction?
http://mapserver.gis.umn.edu/docs/faq/copyright-layer 
 
-Jukka Rahkonen-


Lähettäjä: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Robert
Sanson
Lähetetty: 25. syyskuuta 2008 7:02
Vastaanottaja: mapserver-users at lists.osgeo.org 
Aihe: [mapserver-users] Including a title on a map?

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.
 
I am using Javascript to formulate a CGI request for a PDF output,
using mode=map.
 
Many thanks,
 
Robert Sanson




------------------------------------------------------------------
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.
------------------------------------------------------------------



This message has been scanned for malware by SurfControl plc.
www.surfcontrol.com ( http://www.surfcontrol.com/ )


Click here (
https://www.mailcontrol.com/sr/8KBuz0TuG3PTndxI!oX7UihQAH2Wln+Dl3nxVTW8QEzLdM2kKMnUZ86pZht1Q5VlAx1tJ6swZg7wFL4l1WzKMQ==
) to report this email as spam.
------------------------------------------------------------------
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.
------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080929/6debecb2/attachment.html


More information about the mapserver-users mailing list