added circle symbols for point layers

This commit is contained in:
Lauri Kajan 2016-11-16 10:16:14 +02:00
parent 6e085af7cc
commit 131b5e2f81

View file

@ -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 = '<div style="' +
'background:rgba(' + color[0] + ',' + color[1] + ',' + color[2] + ',1);' +