I have a confusion in creating vector layer.
I have source data in GeoJSON
and in EPSG:3857
(my map view is already
in EPSG:3857
).
Since it is in EPSG:3857
, I thought it is not necessary to use any projection exp.
But vector is not displayed.
What I did:
var vectorSourceCenter = new ol.source.Vector({ features: features, //featureProjection: 'EPSG:3857' //projection: 'EPSG:3857' }); var vectorCenterLayer = new ol.layer.Vector({ source: vectorSourceCenter }); map.addLayer(vectorCenterLayer );