Merge pull request #73 from LKajan/x-ray-points

X-Ray style: add circle symbols for point layers
This commit is contained in:
Petr Sloup 2016-12-05 16:42:16 +01:00 committed by GitHub
commit 70515947ca

View File

@ -69,6 +69,16 @@
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);' +