[mapserver-users] How to limit the width of the outline when the symbol size changes with the map scale?

lars.schylberg at blixtmail.se lars.schylberg at blixtmail.se
Sat Feb 26 09:59:41 PST 2022


Hi,

Just a quick example. Please look at the GIST I created.

https://gist.github.com/LarsSchy/610fc4cf3ed91ba0113b3c215481615b
Jukka is right two circle symbols on top of each other i possible the best solution. That is circle 3, 4 and 5.
In circle 2 I am drawing the outline first and then the middle. It is kind the same.
Circle 4 and 5 I am drawing the red outline with translucent color: COLOR "#FF000080"
Circle 5 is with a shadow with color "#80808080". That is grey with 50 % transparency.
The 80 is 128 in hex.

Run the example with: shp2img -m point_examples.map -o point_examples.png
My MapServer version this evening was: MapServer version 7.2.2

I guess that these should behave differently when You zoom.

Have fun / Lars Schylberg
26 februari 2022 kl. 15:19, "Rahkonen Jukka (MML)" <jukka.rahkonen at maanmittauslaitos.fi (mailto:jukka.rahkonen at maanmittauslaitos.fi?to=%22Rahkonen%20Jukka%20(MML)%22%20<jukka.rahkonen at maanmittauslaitos.fi>)> skrev:
	Hi, 

	Have you tried to use two filled circle symbols for making the outline effect, one below and the other one above? Or to use png image as a symbol? 

	-Jukka Rahkonen- 

	Lähettäjä: MapServer-users <mapserver-users-bounces at lists.osgeo.org (mailto:mapserver-users-bounces at lists.osgeo.org)> Puolesta Kyle Qian
Lähetetty: lauantai 26. helmikuuta 2022 1.58
Vastaanottaja: Jason Snyder <mapserver-users at lists.osgeo.org (mailto:mapserver-users at lists.osgeo.org)>
Aihe: Re: [mapserver-users] How to limit the width of the outline when the symbol size changes with the map scale? 
	The map file I used is: 
	CLASS
NAME "Populated Places"
STYLE
SYMBOL "PT-1"
COLOR "#00A2E8"
OPACITY 100
MINSIZE 10
MAXSIZE 30
SIZE 16.5
OFFSET 0 0
OUTLINECOLOR "#FF0000"
OUTLINEWIDTH 5
END
END
SYMBOLSCALEDENOM 68247.34668319309 
	SYMBOL
NAME "PT-1"
TYPE ellipse
FILLED true
POINTS 5 5 END
END   
	Kyle Qian <kyleqian at gmail.com (mailto:kyleqian at gmail.com)> 于2022年2月26日周六 07:56写道: 
	Hi, when I set up a map for points, I use SYMBOLSCALEDENOM to change the size of points and MIN/MAXSIZE to limit it, but there seems to be no way to control the width of the outline of points. The outline seems to keep getting bigger as the map zooms in. The image below is the result map as the map zooms in: 
	https://pasteboard.co/JC19o7caYHHk.png (https://pasteboard.co/JC19o7caYHHk.png)
Is there any way to solve this problem? 
	In addition, it seems that there is no way to set the transparency of the outline separately. Is it necessary to use a separate STYLE to implement it with GEOMTRANSFORM?  
	Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220226/2a87f3b6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 3229 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220226/2a87f3b6/attachment.png>


More information about the MapServer-users mailing list