From 131b5e2f81eb0664f2b089dc22122711e3432e09 Mon Sep 17 00:00:00 2001 From: Lauri Kajan Date: Wed, 16 Nov 2016 10:16:14 +0200 Subject: [PATCH 1/2] added circle symbols for point layers --- public/templates/data.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public/templates/data.tmpl b/public/templates/data.tmpl index 1abd9ec..3caa2bf 100644 --- a/public/templates/data.tmpl +++ b/public/templates/data.tmpl @@ -69,6 +69,17 @@ type: 'line', paint: {'line-color': colorText} }); + layers_.push({ + id: el['id'] + Math.random(), + source: 'vector_layer_', + 'source-layer': el['id' + + interactive: true, + type: 'circle', + paint: {'circle-color': colorText, + 'circle-radius': 3}, + filter: ["==", "$type", "Point"] + }); var item = document.createElement('div'); item.innerHTML = '