wegue-oss / wegue

Template and components for webmapping applications with OpenLayers and Vue.js
BSD 2-Clause "Simplified" License
93 stars 41 forks source link

infoClick on multiple visible features/layers #367

Closed enricofer closed 2 months ago

enricofer commented 3 months ago

The pull request is about a new infoclick feature allowing to browse between multiple features detected on map visible layers Screenshot (230)

fschmenger commented 3 months ago

Hi @enricofer, thank you for the contribution! I tested this briefly and it works well.

Could you please run npm run lint:fix once and commit the result. Some more comments inline.

Greets Felix

enricofer commented 3 months ago

Hi here I am, sorry for the noise and thank for your work.

chrismayer commented 3 months ago

I had a quick look, what is wrong with the test: The line https://github.com/wegue-oss/wegue/blob/master/tests/unit/specs/components/infoclick/InfoClickWin.spec.js#L88 and following need to be changed to

map.forEachFeatureAtPixel = () => {
  vm.features.push([feat, layer]);
};

so the mock still reflects the current code.

chrismayer commented 2 months ago

Hi @enricofer , do you see a chance that you push this forward? No fronts, this is not meant to put pressure on you. I know everybody has a lot to do. But this feature is too cool, to hang around here ;-) If you currently do not have time to push this forward, which is no problem, I'd happily take over here and finish this. Thanks for any feedback and your great work so far!

enricofer commented 2 months ago

I apologize at that moment I didn't understand the meaning of the code and I forgot to update the PR