I think the problem is that each tile, ulass you are using metatiles like in mapcache, is a separate mapserver request and mapserver does not know about other requests so there is no way to filter out some watermarks.

If you use something like mapcache to generate your tiles that uses a metatile (ie: and NxN tile image) the watermark is only drawn on the metatile once and the the metatile is chopped into tiles.

-Steve W

On 11/26/2018 5:14 AM, Sebastiano Laini wrote:

Hi all,

Since I rewritten the code and switch from OpenLayers 2 to OpenLayers 4 I also implemented a smaller raster tile request instead of the bigger one that they were using before, now the problem is that some clients use watermark and the map is full of watermarks as is present on each tile.

Is there a way to limit the number of watermark presents in the map?

This my watermark layer on the .MAP file

LAYER

    NAME "credits"

               GROUP "g"

   STATUS DEFAULT

    TRANSFORM cc

    TRANSPARENCY 30

    TYPE POINT

    FEATURE

        POINTS

            -0 -20

        END

    END

    CLASS

               NAME 'oslabel'

               STYLE

                   SYMBOL "copyright"

                   COLOR 0 0 0

                   OUTLINECOLOR 0 0 0

                 END

    END

END

And here my copyright.sym

SYMBOLSET

  SYMBOL

    NAME "copyright"

    TYPE PIXMAP

    IMAGE "watermark.gif"

    TRANSPARENT 8

  END

END

Here a link where you can see the result:

https://www.traffwebdemo.co.uk/parking/basic.html

Regards,

Sebastiano Laini

Web Developer

Buchanan Computing



_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to