Commit aac57eb1 authored by Sebastian's avatar Sebastian

line stylebar gemacht

parent 9a05ab86
......@@ -69,6 +69,7 @@ export class MapService {
},
source: new OlVectorSource({features: this.icons})
});
this.connectionLayer = new OlVectorLayer({
style: function(feature) {
......@@ -200,7 +201,6 @@ export class MapService {
for( let peer of node.peers ){
// nur anzeigen, wenn das element auch angezeigt wird.
if(allnodes.indexOf(peer)>-1){
let line = self.createLine(node,peer);
self.connections.push(line);
}
......@@ -422,7 +422,8 @@ export class MapService {
}
createLineStyle(){
return new OlStyle({
stroke: new OlStroke({color: '#cdcdcd',width: 3})
//stroke: new OlStroke({color: '#cdcdcd',width: 3})
stroke: new OlStroke({color: '#ccc',width: 2})
});
}
......@@ -434,7 +435,8 @@ export class MapService {
let lineString = new OlLineString([lhsCoords,rhsCoords]);
let feature = new OlFeature( {geometry: lineString});
feature.set('style',this.createLineStyle());
//feature.set('style',this.createLineStyle());
feature.setStyle(this.createLineStyle());
return feature;
//;
//feature.set('style', this.createStyle('assets/img/map-marker.png', undefined));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment