ghettovoice / vuelayers

Web map Vue components with the power of OpenLayers
https://vuelayers.github.io/
MIT License
683 stars 229 forks source link

Selection of Cluster results in error #414

Closed sh-aix closed 3 years ago

sh-aix commented 3 years ago

Hey,

in vuelayer ^0.12.0-rc.21 I add a cluster to the map which source is a geojson FeatureCollection. When I try to select the cluster by mouse click, I get an error "Cannot convert undefined or null to object".

Extract from the console:

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at forEach (utils.js?f048:331)
    at reduce (utils.js?f048:344)
    at map (utils.js?f048:371)
    at VueComponent.handler (vuelayers.esm.js?afc1:10862)
    at Watcher.run (vue.runtime.esm.js?2b0e:4568)
    at flushSchedulerQueue (vue.runtime.esm.js?2b0e:4310)
    at Array.eval (vue.runtime.esm.js?2b0e:1980)
    at flushCallbacks (vue.runtime.esm.js?2b0e:1906)

Do you also run into the error?

ghettovoice commented 3 years ago

@sh-aix should be now fixed and work as expected