aboutsummaryrefslogtreecommitdiffstats
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/index.html b/index.html
index 594159e..7be2880 100644
--- a/index.html
+++ b/index.html
@@ -30,6 +30,13 @@
var format = new ol.format.WKT();
+ var vector_style = new ol.style.Style({
+ stroke: new ol.style.Stroke({
+ color: '#0091ff',
+ width: 5
+ })
+ });
+
var map = new ol.Map({
layers: [raster],
target: 'map',
@@ -72,8 +79,9 @@
wkt_layer = new ol.layer.Vector({
source: new ol.source.Vector({
features: wkt_features
- })
- })
+ }),
+ style: vector_style
+ });
map.addLayer(wkt_layer);
};
</script>