Due to request on Twitter https://twitter.com/Stephanux40/status/833289922777903104
There were two issues:
- change due to
ol.source.GeoJSON
removal in 3.5.0 https://github.com/openlayers/openlayers/releases/tag/v3.5.0 See section "New Vector API" for the exact documentation for upgrading. - because the data from
cluster.geojson
is using projection 3857 instead of the default EPSG 4326, we needed to add in thenew ol.format.GeoJSON
the following:
..
format: new ol.format.GeoJSON({
defaultDataProjection: 'EPSG:3857'
})
..