Hot answers tagged


As Mike stated in the comments Even when you have a cluster of one you will need to extract the real feature from the cluster this means the return feature; will need to instead be return feature.get('features')[0]; so the code became Omap.on('click', function (evt){ var feature = Omap.forEachFeatureAtPixel(evt.pixel, function (feature,layer) { ...

Only top voted, non community-wiki answers of a minimum length are eligible