mirror of
https://github.com/maptiler/tileserver-gl.git
synced 2024-09-20 08:18:48 +03:00
Merge pull request #73 from LKajan/x-ray-points
X-Ray style: add circle symbols for point layers
This commit is contained in:
commit
70515947ca
@ -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);' +
|
||||
|
Loading…
Reference in New Issue
Block a user