From 76017f5f06825b415d22dfde069178045e2ceca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Barbeau?= Date: Thu, 12 Apr 2018 20:48:09 -0400 Subject: [PATCH] fix(ol): fix ol.style.Style assertion --- src/lib/map/shared/map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/map/shared/map.ts b/src/lib/map/shared/map.ts index 40db3ec280..2e93e5bdf7 100644 --- a/src/lib/map/shared/map.ts +++ b/src/lib/map/shared/map.ts @@ -325,7 +325,7 @@ export class IgoMap { if (geometry === null) { return; } if (geometry.getType() === 'Point') { - feature.setStyle(this.overlayMarkerStyle); + feature.setStyle([this.overlayMarkerStyle]); } this.overlayDataSource.ol.addFeature(feature);