I am getting the error “ol.style is not a constructor” on this line style: new ol.style({
Running code can be seen here: https://www.corobori.com/sos/TestMap3.html
var layer1 = new ol.layer.Vector
(
{
source: new ol.source.Vector(
{
features: [new ol.Feature(
{
geometry: new ol.geom.Point(ol.proj.fromLonLat([-71.4155802, -36.9046117]))
}
)],
style: new ol.style({
image: new ol.style.Icon(({
anchor: [0.5, 46],
anchorXUnits: 'fraction',
anchorYUnits: 'pixels',
opacity: 0.95,
src: 'map-marker3.png'
})),
stroke: new ol.style.Stroke({
width: 3,
color: [255, 0, 0, 1]
}),
fill: new ol.style.Fill({
color: [0, 0, 255, 0.6]
})
})
})
}
);