From ad1cec84a1132caf104a1b00861268190d1cb9e6 Mon Sep 17 00:00:00 2001 From: Antoine Abt Date: Tue, 4 Feb 2014 11:34:47 +0100 Subject: [PATCH] Add style for Geomettry Collection --- examples/modify-features.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/modify-features.js b/examples/modify-features.js index 56fa644bf6..16df4b37f3 100644 --- a/examples/modify-features.js +++ b/examples/modify-features.js @@ -171,10 +171,24 @@ var overlayStyle = (function() { fill: new ol.style.Fill({ color: [255, 255, 255, 0.5] }) + }), + new ol.style.Style({ + stroke: new ol.style.Stroke({ + color: [255, 255, 255, 1], + width: 5 + }) + }), + new ol.style.Style({ + stroke: new ol.style.Stroke({ + color: [0, 153, 255, 1], + width: 3 + }) }) ]; styles[ol.geom.GeometryType.MULTI_POLYGON] = styles[ol.geom.GeometryType.POLYGON]; + styles[ol.geom.GeometryType.GEOMETRY_COLLECTION] = + styles[ol.geom.GeometryType.POLYGON]; styles[ol.geom.GeometryType.LINE_STRING] = [ new ol.style.Style({