Vector Examples
✓ Published0🌍 Public
TThomasG77
Last edited Feb 19, 2017
Created on Feb 19, 2017
Due to request on Twitter https://twitter.com/Stephanux40/status/833289922777903104
There were two issues:
- change due to
ol.source.GeoJSONremoval 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.geojsonis using projection 3857 instead of the default EPSG 4326, we needed to add in thenew ol.format.GeoJSONthe following:
..
format: new ol.format.GeoJSON({
defaultDataProjection: 'EPSG:3857'
})
..