added circle symbols for point layers
This commit is contained in:
parent
6e085af7cc
commit
131b5e2f81
1 changed files with 11 additions and 0 deletions
|
@ -69,6 +69,17 @@
|
||||||
type: 'line',
|
type: 'line',
|
||||||
paint: {'line-color': colorText}
|
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');
|
var item = document.createElement('div');
|
||||||
item.innerHTML = '<div style="' +
|
item.innerHTML = '<div style="' +
|
||||||
'background:rgba(' + color[0] + ',' + color[1] + ',' + color[2] + ',1);' +
|
'background:rgba(' + color[0] + ',' + color[1] + ',' + color[2] + ',1);' +
|
||||||
|
|
Loading…
Reference in a new issue