Skip to content

Commit

Permalink
example: add labels in VRT example
Browse files Browse the repository at this point in the history
  • Loading branch information
zarov committed Jun 10, 2020
1 parent 21392ba commit 0fd1ee3
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions examples/plugins_vrt.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,25 @@
parsedData: feature,
});

var velibLayer = new itowns.ColorLayer('velib', { source: velibSource,
style: {
console.log(feature);

var velibLayer = new itowns.ColorLayer('velib', {
source: velibSource,
style: new itowns.Style({
zoom: { min: 10, max: 20 },
point: {
color: 'cyan',
line: 'red',
radius: 5,
}
}});
radius: 3,
},
text: {
field: '{name}\nCapacity: {Capacity}',
haloColor: 'white',
haloWidth: 1,
},
}),
labelEnabled: true,
});

return view.addLayer(velibLayer);
}).then(function _(layer) {
Expand Down

0 comments on commit 0fd1ee3

Please sign in to comment.