<div dir="ltr">Hi,<div><br></div><div>Thank you of the information Sami. When creating and configuring the map frame in the Oskari UI, it is possible to disable the query tool, so I think that there could be also option for handling the queries by RPC instead. Naturally, this would also require implementing the functionality.</div><div><br></div><div>Best regards,</div><div>Erno</div></div><br><div class="gmail_quote"><div dir="ltr">to 22. marrask. 2018 klo 13.47 Mäkinen Sami (MML) (<a href="mailto:sami.makinen@maanmittauslaitos.fi">sami.makinen@maanmittauslaitos.fi</a>) kirjoitti:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="FI" link="blue" vlink="purple">
<div class="m_-3858165251676434544WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">At the moment you can only get click events including the feature info for features you have added with RPC (with listening
to ‘MapClickedEvent’ and using getFeatures() or listening to the specific event ‘FeatureEvent’). GFI responses from WMS-layers or similar from WFS-layers aren’t accessible outside the iframe. This has been on the “wishlist” for some time so there’s interest
for the feature. Just not enough for someone to actually contribute it :) Sending the data over via RPC wouldn’t be too much work, but there needs to be some way of toggling the popup functionality on and off on the map when you want to handle showing the
data yourself.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> Sami<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></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"> Oskari-user [mailto:<a href="mailto:oskari-user-bounces@lists.osgeo.org" target="_blank">oskari-user-bounces@lists.osgeo.org</a>]
<b>Puolesta </b>Erno Mäkinen<br>
<b>Lähetetty:</b> 22. marraskuuta 2018 12:34<br>
<b>Vastaanottaja:</b> <a href="mailto:oskari-user@lists.osgeo.org" target="_blank">oskari-user@lists.osgeo.org</a><br>
<b>Aihe:</b> [Oskari-user] Oskari RPC and requesting feature info<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">If I have published and embedded an Oskari map via iframe that has, for example a WMS layer, and when user clicks on the map I can capture that event via the MapClickedEvent. However, if I would like to get information of the feature that
was clicked to my Javascript code, is this possible? <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The RPC MapModulePlugin.GetFeatureInfoRequest shows info box on the map for the features and if I have added vector features to the map via the RPC AddFeaturesToMapRequest I can get them via the getFeatures function. However, I would like
to get info of the features that have been added via the Oskari UI and, for example, show customized popup with an image and URL link for them by using my Javascript code.<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Erno Mäkinen<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Gispo Oy<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:erno@gispo.fi" target="_blank">erno@gispo.fi</a> - GSM +358 50 505 7003<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.gispo.fi/" target="_blank">www.gispo.fi</a> - <a href="https://www.facebook.com/GispoFinland/" target="_blank">www.facebook.com/GispoFinland/</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Erno Mäkinen</div><div>Gispo Oy</div><div><a href="mailto:erno@gispo.fi" target="_blank">erno@gispo.fi</a> - GSM +358 50 505 7003</div><div><a href="http://www.gispo.fi/" target="_blank">www.gispo.fi</a> - <a href="https://www.facebook.com/GispoFinland/" target="_blank">www.facebook.com/GispoFinland/</a><br></div></div></div></div></div></div></div>