[Oskari-user] Oskari RPC and requesting feature info
Erno Mäkinen
erno at gispo.fi
Thu Nov 22 04:37:37 PST 2018
Hi,
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.
Best regards,
Erno
to 22. marrask. 2018 klo 13.47 Mäkinen Sami (MML) (
sami.makinen at maanmittauslaitos.fi) kirjoitti:
> Hi,
>
>
>
> 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.
>
>
>
> Sami
>
>
>
> *Lähettäjä:* Oskari-user [mailto:oskari-user-bounces at lists.osgeo.org] *Puolesta
> *Erno Mäkinen
> *Lähetetty:* 22. marraskuuta 2018 12:34
> *Vastaanottaja:* oskari-user at lists.osgeo.org
> *Aihe:* [Oskari-user] Oskari RPC and requesting feature info
>
>
>
> Hi,
>
>
>
> 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?
>
>
>
> 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.
>
>
>
> Best regards,
>
> --
>
> Erno Mäkinen
>
> Gispo Oy
>
> erno at gispo.fi - GSM +358 50 505 7003
>
> www.gispo.fi - www.facebook.com/GispoFinland/
>
--
Erno Mäkinen
Gispo Oy
erno at gispo.fi - GSM +358 50 505 7003
www.gispo.fi - www.facebook.com/GispoFinland/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/oskari-user/attachments/20181122/adfc0e11/attachment-0001.html>
More information about the Oskari-user
mailing list