<div style="font-family: Arial, sans-serif; font-size: 14px;"><p><span style="font-size:12.0pt;font-family:"Arial",sans-serif" lang="EN-US">Dear MapServer Community,</span></p><p><span style="font-size:12.0pt;font-family:"Arial",sans-serif" lang="EN-US">we
have faced an issue with the click tolerance for WMS GetFeatureInfo
requests when using custom map symbols. We use a custom .svg vector
image to display points
in most of our maps.<br>As
I understand it, the TOLERANCE parameter only defines a radius around
the point. Therefore the shape of the clickable area is always a circle.<br>This
does not match our symbol at all and results in a bad user
experience. Essentially, only the very tip of the image is actually
clickable.</span></p><p><span style="font-size:12.0pt;font-family:"Arial",sans-serif" lang="EN-US">I have created a demo page for demonstration purposes. Please visit
<a href="https://koelngis.stadt-koeln.de/koelngis/portale/mapServerClickTolerance/" target="_blank" rel="noreferrer nofollow noopener">
https://koelngis.stadt-koeln.de/koelngis/portale/mapServerClickTolerance/</a> to experience this problem yourself.</span></p><p></p><ul style="margin-top: 0px; margin-bottom: 0px;" data-editing-info="{"orderedStyleType":1,"unorderedStyleType":1}"><li style="font-size: 12pt; font-family: "Arial", sans-serif; list-style-type: disc;"><span style="font-size:12.0pt;font-family:"Arial",sans-serif" lang="EN-US">The
layer with orange symbols is a WMS layer that demonstrates the problem I
described above. It is terrible to work with since most users
instinctively
click on the white circle but actually have to click the tip to get a
GFI response. I have added an additional point layer that shows the
clickable area defined by the TOLERANCE setting.</span></li></ul><p></p><p></p><ul style="margin-top: 0px; margin-bottom: 0px;" data-editing-info="{"orderedStyleType":1,"unorderedStyleType":1}"><li style="font-size: 12pt; font-family: "Arial", sans-serif; list-style-type: disc;"><span style="font-size:12.0pt;font-family:"Arial",sans-serif" lang="EN-US">The layer with blue symbols is a WFS layer that works perfectly fine (since
the click is handled client-side). This is the desired behavior for WMS
requests
as well. We cannot always use WFS due to client performance
constraints.</span></li></ul><p><span style="font-size:12.0pt;font-family:"Arial",sans-serif" lang="EN-US">We
would like to configure the MapServer so that the entire shape can be
clicked precisely. However, we could not find this capability in the
documentation. Please
let us know if it is possible.<br>Offsetting
the symbol so that the white circle matches the clickable point is not
an option because then the tip would indicate that the feature is at a
different
location.</span></p><p><span style="font-size:12.0pt;font-family:"Arial",sans-serif" lang="EN-US">If it i</span><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US">s in fact not possible
and any commercial service providers are reading this mailing list:</span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US">Feel free to send me a quote to <span><a target="_blank" rel="noreferrer nofollow noopener" href="mailto:opensource-mapserver@larsbaum.slmail.me">opensource-mapserver@larsbaum.slmail.me</a></span>. We would like to pay someone to contribute this functionality for .svg
vector images to the MapServer open source project.</span></p><p><span style="font-size:12.0pt;font-family:"Arial",sans-serif" lang="EN-US">For reference, this is how we configure the symbol in the mapfile:</span></p><p><span style="font-size:12.0pt;font-family:"Arial",sans-serif" lang="EN-US"> </span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> SYMBOL
</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> NAME "droplet"</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> TYPE SVG</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> IMAGE "../svg/dropletShape.svg" # You can grab a similar .svg file from the website linked above.</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> ANCHORPOINT 0.5 1 # Make sure the tip of the shape is centered on the point</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> END</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> </span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"># …</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> </span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> TOLERANCEUNITS pixels</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> TOLERANCE 10 # Radius of the clickable circle around the point</span></p><p style="text-indent:35.4pt"><span style="font-family:"Arial",sans-serif" lang="EN-US">CLASS</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> NAME "Some Name"</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> STYLE</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> SYMBOL "droplet"</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> SIZE 40</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> END</span></p><p><span style="font-family:"Arial",sans-serif" lang="EN-US"> END</span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US"> </span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US">Thank you very much for your help!</span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US"> </span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US">Yours sincerely</span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US">Lars Baum<br>GIS Developer<br></span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US">City of Cologne - The Lord Mayor</span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US">Office for Information Processing <br>Competence Center Geoinformationsystems<br></span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);" lang="EN-US">Auf dem Hunnenrücken 3<br>50668 Cologne, Germany</span></p><p><span style="font-size: 12pt; font-family: "Arial", sans-serif; background: white; color: rgb(51, 51, 51);">Mail: <span><a target="_blank" rel="noreferrer nofollow noopener" href="mailto:opensource-mapserver@larsbaum.slmail.me">opensource-mapserver@larsbaum.slmail.me</a><br>Note: I'm using an alias mail to protect my business mail account from spam.<br></span></span></p><p><span style="font-size:12.0pt;font-family:"Arial",sans-serif"></span></p><br></div>
<div class="protonmail_signature_block protonmail_signature_block-empty" style="font-family: Arial, sans-serif; font-size: 14px;">
<div class="protonmail_signature_block-user protonmail_signature_block-empty">
</div>
<div class="protonmail_signature_block-proton protonmail_signature_block-empty">
</div>
</div>