Skip to content

Commit

Permalink
Fix #2987 wrong ol default style for linestrings (green 1 -> blue 3) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto authored and MV88 committed Jun 11, 2018
1 parent 4d6c2c5 commit 4bcc399
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions web/client/components/map/openlayers/VectorStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ const defaultOLStyles = {
image: image
})],
'LineString': options => [new ol.style.Style(assign({},
strokeStyle(options, {color: 'green', width: 1})
strokeStyle(options, {color: 'blue', width: 3})
))],
'MultiLineString': options => [new ol.style.Style(assign({},
strokeStyle(options, {color: 'green', width: 1})
strokeStyle(options, {color: 'blue', width: 3})
))],
'MultiPoint': () => [new ol.style.Style({
image: image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ describe('Test VectorStyle', () => {
let olStyle = VectorStyle.styleFunction(lineString);
let olStroke = olStyle[0].getStroke();

expect(olStroke.getColor()).toBe('green');
expect(olStroke.getWidth()).toBe(1);
expect(olStroke.getColor()).toBe('blue');
expect(olStroke.getWidth()).toBe(3);

const options = {
style: {
Expand Down Expand Up @@ -119,8 +119,8 @@ describe('Test VectorStyle', () => {
let olStyle = VectorStyle.styleFunction(multiLineString);
let olStroke = olStyle[0].getStroke();

expect(olStroke.getColor()).toBe('green');
expect(olStroke.getWidth()).toBe(1);
expect(olStroke.getColor()).toBe('blue');
expect(olStroke.getWidth()).toBe(3);

const options = {
style: {
Expand Down

0 comments on commit 4bcc399

Please sign in to comment.