Introduce new overlaps option for Vector and VectorTile sources

Instead of deciding whether to batch fills and strokes by looking at the
opacity of the style, we now rely on user input.
This commit is contained in:
Andreas Hocevar
2016-04-18 10:41:00 +02:00
parent eed52552a9
commit 7e940e618e
15 changed files with 131 additions and 62 deletions

View File

@@ -29,7 +29,8 @@ var style = new ol.style.Style({
var vector = new ol.layer.Vector({
source: new ol.source.Vector({
url: 'data/topojson/world-110m.json',
format: new ol.format.TopoJSON()
format: new ol.format.TopoJSON(),
overlaps: false
}),
style: function(feature) {
// don't want to render the full world polygon, which repeats all countries