Skip to content
Snippets Groups Projects
Commit 82e2cde9 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Fixed location icon

parent eaabd807
No related branches found
No related tags found
No related merge requests found
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
myImage() myImage()
{ {
var fill = new Fill({ var fill = new Fill({
color: 'white' //[180, 0, 0, 0.3] color: 'white'
}); });
return new CircleStyle({ return new CircleStyle({
......
...@@ -334,15 +334,15 @@ export default{ ...@@ -334,15 +334,15 @@ export default{
myImage() myImage()
{ {
var fill = new Fill({ var fill = new Fill({
color: '#FF0000' //[180, 0, 0, 0.3] color: 'white'
}); });
return new CircleStyle({ return new CircleStyle({
radius: 5, radius: 15,
fill: fill, fill: fill,
stroke: new Stroke({color: 'red', width: 4}), stroke: new Stroke({color: '#3d8052', width: 15}),
}); });
}, },
myVectorGeoSource(geoInfo){ myVectorGeoSource(geoInfo){
if(geoInfo) if(geoInfo)
...@@ -419,16 +419,7 @@ export default{ ...@@ -419,16 +419,7 @@ export default{
], ],
}), }),
style : new Style({ style : new Style({
image : new CircleStyle ({ image : This.myImage()
radius : 5,
fill : new Fill({
color : 'red'
}),
stroke : new Stroke({
color : 'red',
width : 4
})
})
}) })
}); });
...@@ -514,22 +505,16 @@ export default{ ...@@ -514,22 +505,16 @@ export default{
source: new WMTS(options), source: new WMTS(options),
}) , }) ,
new VectorLayer({ new VectorLayer({
source : new VectorSource({ source : new VectorSource({
features : new GeoJSON({ features : new GeoJSON({
dataProjection:"EPSG:4326", dataProjection:"EPSG:4326",
featureProjection:"EPSG:3857" featureProjection:"EPSG:3857"
}).readFeatures(geoInfo), }).readFeatures(geoInfo),
}), }),
style : new Style({ style : new Style({
image: new CircleStyle({ image: This.myImage(),
radius: 5, }),
fill: new Fill({ }),
color: '#FF0000' //[180, 0, 0, 0.3]
}),
stroke: new Stroke({color: 'red', width: 4}),
}),
}),
}),
], ],
controls : [], controls : [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment