[mapserver-users] Mapserver limit watermark
Stephen Woodbridge
stephenwoodbridge37 at gmail.com
Mon Nov 26 07:09:06 PST 2018
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 at 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
More information about the MapServer-users
mailing list