<div dir="ltr">I've re-added support for SHADOWCOLOR/SHADOWSIZE according to <a href="https://github.com/mapserver/mapserver/issues/5438">https://github.com/mapserver/mapserver/issues/5438</a><div><br></div><div>In order to make the multiple label solution compatible with the original one, we would need to handle the following issues:</div><div><br></div><div><a href="https://github.com/mapserver/mapserver/issues/5440">https://github.com/mapserver/mapserver/issues/5440</a><br></div><div><a href="https://github.com/mapserver/mapserver/issues/5441">https://github.com/mapserver/mapserver/issues/5441</a><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-29 14:13 GMT+02:00 Tamas Szekeres <span dir="ltr"><<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I agree this is a regression issue that should be fixed.</div><div><br></div><div>But should we also need to deprecate SHADOWCOLOR and SHADOWSIZE or removing that support in the code was also a regression? I don't see in the documentation that SHADOWCOLOR and SHADOWSIZE are no more supported and the migration guide doesn't mention a compatible solution either.</div><div><br></div><div>We should also make OFFSET as a bindable attribute, since SHADOWSIZE was also bindable.</div><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br><div><br></div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-05-22 20:29 GMT+02:00 Lime, Steve D (MNIT) <span dir="ltr"><<a href="mailto:steve.lime@state.mn.us" target="_blank">steve.lime@state.mn.us</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sure looks to be a regression.<br>
<br>
  Works w/two label blocks: <a href="http://maps1.dnr.state.mn.us/cgi-bin/mapserv64?map=/usr/local/mapserver/apps/test/drop_shadow/test.map&mode=map" rel="noreferrer" target="_blank">http://maps1.dnr.state.mn.us/c<wbr>gi-bin/mapserv64?map=/usr/loca<wbr>l/mapserver/apps/test/drop_<wbr>shadow/test.map&mode=map</a><br>
  Doesn't work: w/two label blocks: <a href="http://maps1.dnr.state.mn.us/cgi-bin/mapserv70?map=/usr/local/mapserver/apps/test/drop_shadow/test.map&mode=map" rel="noreferrer" target="_blank">http://maps1.dnr.state.mn.us/c<wbr>gi-bin/mapserv70?map=/usr/loca<wbr>l/mapserver/apps/test/drop_<wbr>shadow/test.map&mode=map</a><br>
<br>
Mapfile follows... FORCE TRUE gets the label to appear correctly but that shouldn't be necessary. --Steve<br>
<br>
MAP<br>
  NAME 'drop shadows'<br>
  SIZE 500 500<br>
  EXTENT 0 0 499 499<br>
<br>
  FONTSET /usr/local/mapserver/fonts/fon<wbr>ts.list<br>
<br>
  IMAGECOLOR 232 232 232<br>
<br>
  LAYER<br>
    NAME 'label'<br>
    TYPE POINT<br>
    STATUS DEFAULT<br>
    FEATURE<br>
      POINTS 250 250 END<br>
      TEXT 'Sample Text'<br>
    END<br>
    TRANSFORM FALSE<br>
    CLASS<br>
      LABEL<br>
        TYPE TRUETYPE<br>
        FONT arial<br>
        SIZE 16<br>
        COLOR 181 181 181<br>
        OFFSET 3 3<br>
      END<br>
      LABEL<br>
        TYPE TRUETYPE<br>
        FONT arial<br>
        SIZE 16<br>
        COLOR 0 0 0<br>
        OUTLINECOLOR 255 255 255<br>
      END<br>
    END<br>
  END<br>
END<br>
<div><div class="m_-5348729456270016530h5"><br>
-----Original Message-----<br>
From: mapserver-dev [mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<wbr>lists.osgeo.org</a>] On Behalf Of Stephen Woodbridge<br>
Sent: Sunday, May 21, 2017 6:07 PM<br>
To: Tamas Szekeres <<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>><br>
Cc: <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
Subject: Re: [mapserver-dev] drop shadow for labels<br>
<br>
FORCE TRUE is likely going to generate other problems.<br>
<br>
Did you try this without FORCE TRUE. This:<br>
<a href="http://mapserver.org/development/rfc/ms-rfc-77.html" rel="noreferrer" target="_blank">http://mapserver.org/developme<wbr>nt/rfc/ms-rfc-77.html</a><br>
leads me to believe that multiple label blocks in a class use the same<br>
label point and therefore should not need the FORCE TRUE. And I think<br>
you can have multiple labels optionally with leader lines on a single<br>
point like this.<br>
<br>
-Steve W<br>
<br>
On 5/21/2017 5:13 PM, Tamas Szekeres wrote:<br>
> We could indeed achieve similar effect by duplicating the label<br>
> definition, however we need to set FORCE TRUE for the upper label to get<br>
> it displayed at all.<br>
><br>
> Best regards,<br>
><br>
> Tamas<br>
><br>
><br>
> 2017-05-21 22:30 GMT+02:00 Stephen Woodbridge <<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a><br>
> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.co<wbr>m</a>>>:<br>
><br>
>     Ahhh, sorry. I believe that you can include the label block twice,<br>
>     the first time you draw the shadow, with some offset and using your<br>
>     shadow color, the second time you draw it with the foreground color.<br>
><br>
>     You should open an issue against the docs they are not correct.<br>
>     There might be an FRC that covers this change, but I'm not seeing one.<br>
><br>
>     On 5/21/2017 4:13 PM, Tamas Szekeres wrote:<br>
><br>
>         I've already learnt, that BACKGROUNDCOLOR,<br>
>         BACKGROUNDSHADOWCOLOR, BACKGROUNDSHADOWSIZE can be replaced with<br>
>         label styles, but what about SHADOWCOLOR and SHADOWSIZE?<br>
><br>
>         Thanks,<br>
><br>
>         Tamas<br>
><br>
><br>
>         2017-05-21 22:01 GMT+02:00 Stephen Woodbridge<br>
>         <<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.co<wbr>m</a>><br>
>         <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.c<wbr>om</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.co<wbr>m</a>>>>:<br>
><br>
><br>
>              On 5/21/2017 1:54 PM, Tamas Szekeres wrote:<br>
><br>
>                  Hi,<br>
><br>
>                  Could someone explain how to configure drop shadow for<br>
>         label in<br>
>                  mapserver 7.x ?<br>
>                  It looks like the SHADOWCOLOR/SHADOWSIZE implementation<br>
>         has been<br>
>                  stripped from the code and I'm not sure what replaces<br>
>         that option.<br>
>                  The documentation is very brief in this regard.<br>
><br>
><br>
>              BACKGROUNDCOLOR [r] [g] [b] | [hexadecimal string]<br>
><br>
>                   Color to draw a background rectangle (i.e. billboard).<br>
>         Off by<br>
>              default.<br>
><br>
>                   Note<br>
><br>
>                   Removed in 6.0. Use a LABEL STYLE object with<br>
>         GEOMTRANSFORM<br>
>              labelpoly and COLOR.<br>
>              BACKGROUNDSHADOWCOLOR [r] [g] [b] | [hexadecimal string]<br>
><br>
>                   Color to draw a background rectangle (i.e. billboard)<br>
>         shadow.<br>
>              Off by default.<br>
><br>
>                   Note<br>
><br>
>                   Removed in 6.0. Use a LABEL STYLE object with<br>
>         GEOMTRANSFORM<br>
>              labelpoly, COLOR and OFFSET.<br>
>              BACKGROUNDSHADOWSIZE [x][y]<br>
><br>
>                   How far should the background rectangle be offset?<br>
>         Default is 1.<br>
><br>
>                   Note<br>
><br>
>                   Removed in 6.0. Use a LABEL STYLE object with<br>
>         GEOMTRANSFORM<br>
>              labelpoly, COLOR and OFFSET.<br>
><br>
>         <a href="http://mapserver.org/mapfile/label.html#label-style" rel="noreferrer" target="_blank">http://mapserver.org/mapfile/<wbr>label.html#label-style</a><br>
>         <<a href="http://mapserver.org/mapfile/label.html#label-style" rel="noreferrer" target="_blank">http://mapserver.org/<wbr>mapfile/label.html#label-style</a><wbr>><br>
>              <<a href="http://mapserver.org/mapfile/label.html#label-style" rel="noreferrer" target="_blank">http://mapserver.org/mapfile/<wbr>label.html#label-style</a><br>
>         <<a href="http://mapserver.org/mapfile/label.html#label-style" rel="noreferrer" target="_blank">http://mapserver.org/<wbr>mapfile/label.html#label-style</a><wbr>>><br>
><br>
>              STYLE<br>
>                 GEOMTRANSFORM 'labelpoly'<br>
>                 COLOR 153 153 153<br>
>                 OFFSET 3 2<br>
>              END # STYLE<br>
>              STYLE<br>
>                 GEOMTRANSFORM 'labelpoly'<br>
>                 COLOR 255 0 0<br>
>              END # STYLE<br>
><br>
>              ---<br>
>              This email has been checked for viruses by Avast antivirus<br>
>         software.<br>
>         <a href="https://www.avast.com/antivirus" rel="noreferrer" target="_blank">https://www.avast.com/antivir<wbr>us</a><br>
>         <<a href="https://www.avast.com/antivirus" rel="noreferrer" target="_blank">https://www.avast.com/antivi<wbr>rus</a>><br>
>         <<a href="https://www.avast.com/antivirus" rel="noreferrer" target="_blank">https://www.avast.com/antivi<wbr>rus</a> <<a href="https://www.avast.com/antivirus" rel="noreferrer" target="_blank">https://www.avast.com/antivir<wbr>us</a>>><br>
><br>
>              ______________________________<wbr>_________________<br>
>              mapserver-dev mailing list<br>
>         <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
>         <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.o<wbr>sgeo.org</a>><br>
>         <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.o<wbr>sgeo.org</a><br>
>         <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.o<wbr>sgeo.org</a>>><br>
>         <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailm<wbr>an/listinfo/mapserver-dev</a><br>
>         <<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mail<wbr>man/listinfo/mapserver-dev</a>><br>
>              <<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailm<wbr>an/listinfo/mapserver-dev</a><br>
>         <<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mail<wbr>man/listinfo/mapserver-dev</a>>><br>
><br>
><br>
><br>
><br>
<br>
<br>
---<br>
This email has been checked for viruses by Avast antivirus software.<br>
<a href="https://www.avast.com/antivirus" rel="noreferrer" target="_blank">https://www.avast.com/antiviru<wbr>s</a><br>
<br>
______________________________<wbr>_________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
</div></div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/mapserver-dev</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>