[Oskari-user] Bug in Suomi.fi maps - embedded maps?

Mäkinen Sami (MML) sami.makinen at maanmittauslaitos.fi
Fri Oct 26 02:56:19 PDT 2018


Hi,


I'd like to help but it's rather difficult when you first have to reverse engineer the app or guess what the app is doing :)


<rant>

To me it looks like there's no GetFeatureInfo operations going on here. Instead it looks like an RPC app with markers or features being pushed on the map. Where clicks on these items are being listened to on the page that has the embedded map. And clicks are used to trigger popups on the map where content comes from the "parent" page? Possibly even clustering done manually over RPC (something that I would like to add to Oskari so that would be an awesome contribution to the project and would reduce the maintenance of the RPC app).


So the question might be if there are 2 markers or features on top of each other (added with AddFeaturesToMapRequest or AddMarkerRequest) which one or if not both trigger a click event? Looks like it's the one that's closest to the background, but there might be 2 click events and the second one overrides the first one and from user perspective we only see the second one.

</rant>


Would be awesome if there's someone who can describe how Oskari is used here and what the problem is from a technical point of view. Is it a WMS-layer? Are these markers or features or both? Are they being pushed to the map over RPC? Does the app receive multiple click events when the user clicks an overlapping marker/feature? Do you even listen to clicks/add the popups manually? Do you use priority numbering for features? Possibly even a simple code to reproduce the problem and a suggested way how you think it should behave on this kind of use case?


As to "Can Oskari GetFeatureInfo drill into multiple layers from one interface?" Oskari sends a GetFeatureInfo request for WMS-layers on the map that are queryable and it's up to the service to respond with the info. If it means drilling into multiple layers it's up to the WMS-service. But actually looking at the appsetup used by the embedded map I can tell that it only has the background WMTS-layer and no WMS-layers, but I'm too lazy to rewrite the whole message so I'll just leave the questions above anyway :)


           Sami


________________________________
Lähettäjä: Sanna Jokela <sanna at gispo.fi>
Lähetetty: 26. lokakuuta 2018 11:57
Vastaanottaja: Mäkinen Sami (MML)
Kopio: oskari-user at lists.osgeo.org
Aihe: Re: [Oskari-user] Bug in Suomi.fi maps - embedded maps?

Apparently the clusters are usually multiple points at the same location. Nothing has changed since I asked. One problem location in Espoo. Image attached.
[screencapture-kela-fi-palvelupisteen-haku-2018-10-26-09_23_08.png]

One thing that I found out from this was, that the data is originally in json format and brought somehow to the Suomi.fi maps as only one layer. Similar issues were once in Paikkatietoikkuna when there were landuse plans containing group layers and the info-tool could drill into just to the first layer described in the WMS (now I can't test this since the info-tool does not work at all from the regional landuse plans... probably due to the source definitions). So could this be a issue more about how the layers are described in the interface and in which order? Can Oskari GetFeatureInfo drill into multiple layers from one interface?

Br,
Sanna

On Fri, 26 Oct 2018 at 11:20, Mäkinen Sami (MML) <sami.makinen at maanmittauslaitos.fi<mailto:sami.makinen at maanmittauslaitos.fi>> wrote:

Hi,


I don't know if this was changed between the message and now, but looks like the points are clustered and clicking a cluster zooms in. So on a quick test I couldn't reproduce the problem.


          Sami


________________________________
Lähettäjä: Oskari-user <oskari-user-bounces at lists.osgeo.org<mailto:oskari-user-bounces at lists.osgeo.org>> käyttäjän puolestaSanna Jokela <sanna at gispo.fi<mailto:sanna at gispo.fi>>
Lähetetty: 25. lokakuuta 2018 17:52
Vastaanottaja: oskari-user at lists.osgeo.org<mailto:oskari-user at lists.osgeo.org>
Aihe: [Oskari-user] Bug in Suomi.fi maps - embedded maps?

Hi!

Asking for a new friend :)

Suomi.fi maps has a possibility to create embedded maps and with Oskari API you can request different things from e.g. your own datasources.

Is is due to the data source or the embedded maps or the website that the info-pop-up shows only one result in those cases when there are multiple points on top of each other?

Example here: https://www.kela.fi/palvelupisteen-haku ==> zoom out to see objects with multiple points on top of each other (number is shown in the vicinity of the symbol) and click on the symbol ==> only one result is shown. Apparently it is also the one that is the lowest.

In this case the data is requested through API received from the Service database in Finland.

If someone has time to check this at some point, it would be great! At least to know which service to blame :)

BR,
--
Sanna Jokela
GIS specialist / Oskari communication coordinator
Gispo Ltd
+358 407664607
www.gispo.fi<http://www.gispo.fi/>
https://community.oskari.org


--
Sanna Jokela
GIS specialist / Oskari communication coordinator
Gispo Ltd
+358 407664607
www.gispo.fi<http://www.gispo.fi/>
https://community.oskari.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/oskari-user/attachments/20181026/04f2617d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screencapture-kela-fi-palvelupisteen-haku-2018-10-26-09_23_08.png
Type: image/png
Size: 781443 bytes
Desc: screencapture-kela-fi-palvelupisteen-haku-2018-10-26-09_23_08.png
URL: <http://lists.osgeo.org/pipermail/oskari-user/attachments/20181026/04f2617d/attachment-0001.png>


More information about the Oskari-user mailing list