EMBED parameter

Stephen Lime steve.lime at dnr.state.mn.us
Wed Mar 22 14:48:06 PST 2000


Um, er. Forgot to update the docs for this one. Embeding works for scalebars
at this point. The EMBED parameter is not used rather you set the STATUS
to EMBED. You MUST have a markerset defined to use embedded scalebars.
They are actually added as a symbol and rendered using the noramal marker
utilities. Here's a typical definition:

SCALEBAR
  STATUS EMBED
  LABEL
    SIZE tiny
    COLOR 0 0 0
    OUTLINECOLOR 255 255 255
  END
  STYLE 0
  INTERVALS 3
  SIZE 100 3
  COLOR 0 0 0
  BACKGROUNDCOLOR 255 255 255
  OUTLINECOLOR 0 0 0
  UNITS MILES
  POSITION LR
  TRANSPARENT TRUE
END # Scalebar

TRANSPARENT turns the image transparent. POSITION is similar to POSITION for labels.
Supported positions are UL,UC,UR,LL,LC,LR. Attached is an example image with an
embedded scalebar using the above definition.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> RAldridge <RAldridge at linuxstart.com> 03/22/00 03:19PM >>>
Does the EMBED parameter still work for legends and scalebars?  I haven't tried it with a legend, but when I add 'EMBED true' to my scalebar parameters in my .map file, I get:

loadScalebar(): Unknown identifier. (EMBED):(67)

I don't know that I'd use it.  Just wanted to see how it looks.

Thanks,

Robert Aldridge
----------------------
Do you do Linux? :) 
Get your FREE @linuxstart.com email address at: http://www.linuxstart.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.gif
Type: image/gif
Size: 10993 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20000322/a5727b73/attachment.gif>


More information about the MapServer-users mailing list