[Mapserver-users] How to Embedded text or image in map

Emil Zegers EZS at DeStraat.NL
Wed Mar 24 07:43:17 EST 2004


Hello Xavier,

You can embed positioned elements like text or elements the following
way:

LAYER
  NAME "credits"
  STATUS DEFAULT
  TRANSFORM FALSE
  TYPE ANNOTATION
  FEATURE
    POINTS
      10, 10
    END
    TEXT 'www.strategis.fr'
  END
  CLASS
    LABEL
      TYPE TRUETYPE
      FONT "arial"
      SIZE 11
      ANTIALIAS TRUE
     COLOR 0 0 0
    END
  END
END

This layer should be added as the last layer in the map file to show on
top.

Same for images (this could be the scaelbar, however you will need some
serverside scripting to rename/copy the current scalebar to the defined
path/filename provided in the layer, I don't know how to get this
dynamic)

LAYER
  NAME "scalebar"
  TYPE RASTER
  STATUS DEFAULT
  TRANSFORM FALSE
  DATA "/path/to/file/scalbar.png"
END

Best regards,

Emil Zegers


>>> "Xavier Mauclaire" <xavier.mauclaire at strategis.fr> 03/24/04 11:03am
>>>
Hi
i'd like to embed en simple text in the map image generated by
mapserver.
As i can embed the scalebar i'd like to do the same thing with e text
or a
image.
regards



      Xavier MAUCLAIRE



      Conseils et développements en SIG  STRATEGIS S.A.

      Parc 2000
      19, rue Joe Dassin
      34184 Montpellier Cedex 4

      Tél. +33 (0) 4.67.40.75.40
      Fax +33 (0) 4.67.40.75.41
      www.strategis.fr 

______________________________________________________

 This message has been checked for all known viruses
______________________________________________________




More information about the mapserver-users mailing list