vectorLayer = {
let redCircle = new ol.style.Circle({
radius: 6,
fill: new ol.style.Fill({color: 'rgb(255,0,0,.5)'}),
});
let redStyle = new ol.style.Style({ image: redCircle });
let vectorSource = new ol.source.Vector({
url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week.geojson",
format: new ol.format.GeoJSON()
});
const vectorLayer = new ol.layer.Vector({
source: vectorSource,
style: redStyle
});
return vectorLayer;
}