Skip to content

Commit

Permalink
Merge pull request #73 from LKajan/x-ray-points
Browse files Browse the repository at this point in the history
X-Ray style: add circle symbols for point layers
  • Loading branch information
petrsloup authored Dec 5, 2016
2 parents 6e085af + 6309080 commit 7051594
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions public/templates/data.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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);' +
Expand Down

0 comments on commit 7051594

Please sign in to comment.