Re: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Thomas Bonfort
this isn't currently possible.

best regards,
thomas

On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia nelson...@hotmail.com wrote:

 Hi,

 Do you know how to write an outline on the roads label boxes, just like the
 ones that Google Maps has? In Mapserver docs I only see an outline for the
 letters and not for the background. Does Mapserver support it?

 You can see the labels (L2150, K2, K7) with white background and black
 outline at:

 http://maps.google.com/maps?ie=UTF8ll=50.764911,10.953197spn=0.038979,0.11158z=14

 Thanks,

 Nelson

 
 Get news, entertainment and everything you care about at Live.com. Check it
 out!
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users





-- 
www.camptocamp.com
+33 4 79 26 57 97
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Christy Nieman

Hi,

You can use an annotation layer with a symbol.  Something like:

LAYER
 NAME labels
 TYPE ANNOTATION
 DATA /your/data/path/
 STATUS ON
 LABELITEM RD_NUM

 CLASS
   NAME road_numbers
   STYLE
 SYMBOL 'rectangle'
 COLOR 255 255 255
 OUTLINECOLOR 0 0 0
 SIZE 16
   END
   LABEL
 TYPE TRUETYPE
 ANTIALIAS TRUE
 FONT myfont
 SIZE 8
 POSITION CC
 COLOR  0 0 0
 PARTIALS FALSE
   END
 END
END

and the symbol would be something like:
SYMBOL
 NAME 'rectangle'
 TYPE VECTOR
 POINTS
   0 0
   0 14
   25 14
   25 0
   0 0
 END
 FILLED TRUE
END

Regards,
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca

Nelson Correia wrote:
 
Hi,
 
Do you know how to write an outline on the roads label boxes, just 
like the ones that Google Maps has? In Mapserver docs I only see an 
outline for the letters and not for the background. Does Mapserver 
support it?
 
You can see the labels (L2150, K2, K7) with white background and black 
outline at:
 
http://maps.google.com/maps?ie=UTF8ll=50.764911,10.953197spn=0.038979,0.11158z=14 
http://maps.google.com/maps?ie=UTF8ll=50.764911,10.953197spn=0.038979,0.11158z=14
 
Thanks,
 
Nelson



Get news, entertainment and everything you care about at Live.com. 
Check it out! http://www.live.com/getstarted.aspx%20



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Steve Lime
You can however, develop separate classes based on label length. You'd have 
different
symbols to handle wide text vs. narrow. For example:

LABELITEM 'myitem'
CLASS
  EXPRESSION (length('[myitem]')  5) # use a really wide shield
  STYLE
SYMBOL 'reallywideshield'
 ...
  END
END
CLASS
  EXPRESSION (length('[myitem]')  3) # use a wide marker
  STYLE
SYMBOL 'wideshield'
 ...
  END
END
CLASS # default to a regular shield
  STYLE
SYMBOL 'shield'
 ...
  END
END

Steve

 On 4/28/2009 at 12:10 PM, in message
2922382e0904281010i47fadd9ds51346665bd481...@mail.gmail.com, Thomas Bonfort
thomas.bonf...@camptocamp.com wrote:
 this isn't currently possible.
 
 best regards,
 thomas
 
 On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia nelson...@hotmail.com wrote:

 Hi,

 Do you know how to write an outline on the roads label boxes, just like the
 ones that Google Maps has? In Mapserver docs I only see an outline for the
 letters and not for the background. Does Mapserver support it?

 You can see the labels (L2150, K2, K7) with white background and black
 outline at:

 
 http://maps.google.com/maps?ie=UTF8ll=50.764911,10.953197spn=0.038979,0.11158
  
 z=14

 Thanks,

 Nelson

 
 Get news, entertainment and everything you care about at Live.com. Check it
 out!
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org 
 http://lists.osgeo.org/mailman/listinfo/mapserver-users 


 
 
 
 -- 
 www.camptocamp.com 
 +33 4 79 26 57 97
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org 
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Thomas Bonfort
The label background is getting quite cluttered actually, we have
backgroundcolor, backgroundshadowcolor, backgroundshadowsize, and
maybe a couple of others I'm forgetting.

maybe we could add something equivalent to backgroundstyle that would
have the same syntax as a class STYLE, that would then be passed on as
a normal style to msDrawShadeSymbol, along with the shapeobj
corresponding to the background shade.

we'd then have all the goodness of mapserver styles: outlines,
symbols, opacity, etc...

just a thought,

thomas

On Tue, Apr 28, 2009 at 7:23 PM, Steve Lime steve.l...@dnr.state.mn.us wrote:
 You can however, develop separate classes based on label length. You'd have 
 different
 symbols to handle wide text vs. narrow. For example:

 LABELITEM 'myitem'
 CLASS
  EXPRESSION (length('[myitem]')  5) # use a really wide shield
  STYLE
    SYMBOL 'reallywideshield'
     ...
  END
 END
 CLASS
  EXPRESSION (length('[myitem]')  3) # use a wide marker
  STYLE
    SYMBOL 'wideshield'
     ...
  END
 END
 CLASS # default to a regular shield
  STYLE
    SYMBOL 'shield'
     ...
  END
 END

 Steve

 On 4/28/2009 at 12:10 PM, in message
 2922382e0904281010i47fadd9ds51346665bd481...@mail.gmail.com, Thomas Bonfort
 thomas.bonf...@camptocamp.com wrote:
 this isn't currently possible.

 best regards,
 thomas

 On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia nelson...@hotmail.com 
 wrote:

 Hi,

 Do you know how to write an outline on the roads label boxes, just like the
 ones that Google Maps has? In Mapserver docs I only see an outline for the
 letters and not for the background. Does Mapserver support it?

 You can see the labels (L2150, K2, K7) with white background and black
 outline at:


 http://maps.google.com/maps?ie=UTF8ll=50.764911,10.953197spn=0.038979,0.11158
 z=14

 Thanks,

 Nelson

 
 Get news, entertainment and everything you care about at Live.com. Check it
 out!
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users





 --
 www.camptocamp.com
 +33 4 79 26 57 97
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users





-- 
www.camptocamp.com
+33 4 79 26 57 97
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Outline on the roads label boxes

2009-04-28 Thread Nelson Correia


I've done it with several rectangle symbols.

 

Thank you all for the quick answers! :)

 

Nelson 

 
 Date: Tue, 28 Apr 2009 19:33:01 +0200
 Subject: Re: [mapserver-users] Outline on the roads label boxes
 From: thomas.bonf...@camptocamp.com
 To: steve.l...@dnr.state.mn.us
 CC: nelson...@hotmail.com; mapserver-users@lists.osgeo.org
 
 The label background is getting quite cluttered actually, we have
 backgroundcolor, backgroundshadowcolor, backgroundshadowsize, and
 maybe a couple of others I'm forgetting.
 
 maybe we could add something equivalent to backgroundstyle that would
 have the same syntax as a class STYLE, that would then be passed on as
 a normal style to msDrawShadeSymbol, along with the shapeobj
 corresponding to the background shade.
 
 we'd then have all the goodness of mapserver styles: outlines,
 symbols, opacity, etc...
 
 just a thought,
 
 thomas
 
 On Tue, Apr 28, 2009 at 7:23 PM, Steve Lime steve.l...@dnr.state.mn.us 
 wrote:
  You can however, develop separate classes based on label length. You'd have 
  different
  symbols to handle wide text vs. narrow. For example:
 
  LABELITEM 'myitem'
  CLASS
   EXPRESSION (length('[myitem]')  5) # use a really wide shield
   STYLE
 SYMBOL 'reallywideshield'
  ...
   END
  END
  CLASS
   EXPRESSION (length('[myitem]')  3) # use a wide marker
   STYLE
 SYMBOL 'wideshield'
  ...
   END
  END
  CLASS # default to a regular shield
   STYLE
 SYMBOL 'shield'
  ...
   END
  END
 
  Steve
 
  On 4/28/2009 at 12:10 PM, in message
  2922382e0904281010i47fadd9ds51346665bd481...@mail.gmail.com, Thomas 
  Bonfort
  thomas.bonf...@camptocamp.com wrote:
  this isn't currently possible.
 
  best regards,
  thomas
 
  On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia nelson...@hotmail.com 
  wrote:
 
  Hi,
 
  Do you know how to write an outline on the roads label boxes, just like 
  the
  ones that Google Maps has? In Mapserver docs I only see an outline for the
  letters and not for the background. Does Mapserver support it?
 
  You can see the labels (L2150, K2, K7) with white background and black
  outline at:
 
 
  http://maps.google.com/maps?ie=UTF8ll=50.764911,10.953197spn=0.038979,0.11158
  z=14
 
  Thanks,
 
  Nelson
 
  
  Get news, entertainment and everything you care about at Live.com. Check 
  it
  out!
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 
  --
  www.camptocamp.com
  +33 4 79 26 57 97
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 
 -- 
 www.camptocamp.com
 +33 4 79 26 57 97

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users