Skip to content

Commit cc49723

Browse files
committed
Add example fill style
1 parent 0d11395 commit cc49723

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

workshop/exercises/app/js/vector-tiles.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Map from 'ol/Map.js';
44
import VectorTileLayer from 'ol/layer/VectorTile.js';
55
import VectorTileSource from 'ol/source/VectorTile.js';
66
import View from 'ol/View.js';
7-
import { Fill, Icon, Stroke, Style, Text } from 'ol/style.js';
7+
import { Fill, Stroke, Style } from 'ol/style.js';
88

99
// https://openlayers.org/en/latest/examples/mapbox-vector-tiles.html
1010

@@ -24,7 +24,10 @@ const map = new Map({
2424
stroke: new Stroke({
2525
color: 'rgb(66, 133, 244)', // Light blue border color
2626
width: 2, // Border width
27-
})
27+
}),
28+
// fill: new Fill({
29+
// color: 'rgba(66, 133, 244, 0.4)' // semi-transparent blue fill
30+
//})
2831
});
2932
},
3033
}),

0 commit comments

Comments
 (0)