<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.Shkpostityyli18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Knowing about WMS-layers or GetFeatureInfo is not required; the conversation just got a bit sidetracked when trying to
guess how things work in the app :) With markers you only have one layer to work with (all markers go to the same layer). To use multiple layers you need to use AddFeaturesToMapRequest (<a href="http://www.oskari.org/api/requests#1.48.0/mapping/mapmodule/request/addfeaturestomaprequest.md">http://www.oskari.org/api/requests#1.48.0/mapping/mapmodule/request/addfeaturestomaprequest.md</a>)
and VectorLayerRequest (<a href="http://www.oskari.org/api/requests#1.48.0/mapping/mapmodule/request/vectorlayerrequest.md">http://www.oskari.org/api/requests#1.48.0/mapping/mapmodule/request/vectorlayerrequest.md</a>) which work pretty much the same way but
have more options and as such are a bit more complex. Features can have the priority numbering I mentioned earlier that you can use for defining the drawing order. With markers I think the latest addition is always the one on top of another marker that has
been added earlier.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Using features instead of markers creates a challenge with ShowInfoboxRequest though. You can target the popup at markers
but currently there’s no support for targetting features. So with features you would have to add the infobox popup on coordinates instead of directly pointing at the marker. It’s not a big problem with points though. Anyway, hope this helps and if you want
to contribute any point/feature clustering magic to Oskari it would be greatly appreciated and I can help with that as well. And also ask freely if there’s something that’s not clear with how you should proceed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"> Sami<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">PS. You can sign in for the list at
<a href="https://lists.osgeo.org/mailman/listinfo/oskari-user">https://lists.osgeo.org/mailman/listinfo/oskari-user</a> so the messages come through without approval.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">PPS. I removed part of the thread from this reply as it had huge images included.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Lähettäjä:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Sanna Jokela [mailto:sanna@gispo.fi]
<br>
<b>Lähetetty:</b> 31. lokakuuta 2018 14:00<br>
<b>Vastaanottaja:</b> Mäkinen Sami (MML) <sami.makinen@maanmittauslaitos.fi>; Samuli Vuorinen <samuli.vuorinen@kela.fi>; mikko.karvonen@kela.fi<br>
<b>Kopio:</b> oskari-user@lists.osgeo.org<br>
<b>Aihe:</b> Re: [Oskari-user] Bug in Suomi.fi maps - embedded maps?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Forwardin this message to all:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hey, developers of the application here.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">GetFeatureInfo operations are not used, but instead markers are added to the map with the AddMarkerRequest. Then ShowInfobox windows are added to these markers.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">We believe your assessment is correct - it seems like there are two click events when the markers overlap and user clicks on the overlapping part. The second event indeed seems to override the first one, so the user only
sees the marker that’s closer to the map clicked.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">As we were discussing this, Mikko probably found a way to select the topmost one of overlapping markers, instead of the one closest to the map. We’re still interested in figuring out how to properly utilize layers, for
example to draw different kinds of service locations on separate layers or something similar.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Regarding to your questions:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">- We’re not familiar with the concept of WMS layers.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">- We use markers only, no features as of now.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">- We’re using a hosted Oskari RPC to push them to the map.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">- It does seem like the app receives multiple click events when clicking the overlapping markers.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">- When a marker is clicked, information on what the ShowInfobox contains is passed to the popup.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">- No priority numbering - we weren’t aware of this or really even how to properly utilize layers while developing.</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal">Mikko Karvonen & Samuli Vuorinen<o:p></o:p></p>
<p class="MsoNormal">Kela.fi<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Sanna Jokela<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt">GIS specialist / Oskari communication coordinator</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt">Gispo Ltd</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt">+358 407664607</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt"><a href="http://www.gispo.fi/" target="_blank"><span style="color:#1155CC">www.gispo.fi</span></a> </span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><a href="https://community.oskari.org" target="_blank">https://community.oskari.org</a> </span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>