Skip to content

Commit

Permalink
Better strokes for RouteLayer lines
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvdo committed Dec 9, 2021
1 parent 9625caa commit 40aa8a2
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/components/yeti/map-layers/RouteLayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,26 @@ import Yetix from '@/components/yeti/Yetix';
import c2c from '@/js/apis/c2c';
import ol from '@/js/libs/ol';
let normalLineStyle = new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'yellow',
width: 3,
let normalLineStyle = [
new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba(0, 0, 0, 0.4)',
width: 5,
}),
}),
});
new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'yellow',
width: 3,
}),
}),
];
let highlightedLineStyle = [
new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'rgba(255, 255, 0, .5)',
width: 8,
color: 'yellow',
width: 9,
}),
zIndex: 1,
}),
Expand Down

0 comments on commit 40aa8a2

Please sign in to comment.