Merge pull request #5196 from ahocevar/batch-fill-stroke
Batch polygon and circle fills and strokes
This commit is contained in:
@@ -93,6 +93,7 @@ var map = new ol.Map({
|
||||
new ol.layer.VectorTile({
|
||||
source: new ol.source.VectorTile({
|
||||
format: format,
|
||||
overlaps: false,
|
||||
tileGrid: tileGrid,
|
||||
url: 'http://{a-c}.tile.openstreetmap.us/' +
|
||||
'vectiles-land-usages/{z}/{x}/{y}.topojson'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user