From f6706c73fadaebe7f658e78d80fc2bac4ce80fe1 Mon Sep 17 00:00:00 2001
From: Dominik Pfennig <dominik@suma-ev.de>
Date: Tue, 3 Jan 2017 14:36:54 +0100
Subject: [PATCH] =?UTF-8?q?F=C3=BCllfarbe=20von=20Features=20abgeschw?=
 =?UTF-8?q?=C3=A4cht?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 resources/views/searchResults.blade.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/resources/views/searchResults.blade.php b/resources/views/searchResults.blade.php
index dc0cbac..39c8b1b 100644
--- a/resources/views/searchResults.blade.php
+++ b/resources/views/searchResults.blade.php
@@ -11,7 +11,10 @@ $("#showResults").click(function(){
 });
 @endif
 
-
+var featureStyle = new ol.style.Style({
+    stroke: new ol.style.Stroke({ color: 'rgb(255,128,0)' }),
+    fill: new ol.style.Fill({ color: 'rgba(255,128,0,.03)'})
+});
 
 $.each(searchResults, function(index, value) {
         var el = $('<span id="index" class="marker" style="filter: hue-rotate('+value["huerotate"]+'deg);">'+index+'</span>');
@@ -108,6 +111,9 @@ $.each(searchResults, function(index, value) {
         var feature = new ol.Feature({
             'geometry': geom
         });
+
+        feature.setStyle(featureStyle);
+
         feature.setId(index);
         vectorSource.addFeature(feature);
 });
-- 
GitLab