openlayers 3 - GeoJSON tiles regression in v3.5.0 -
my vector tiles rendered correctly version 3.4, nothing displayed in 3.5. there no errors in js console. haven't found related changes in recent api. bug?
var tilevectorsource = new ol.source.tilevector({ format: new ol.format.geojson(), tilegrid: new ol.tilegrid.xyz({ maxzoom: 19 }), url: 'data/{z}/{x}/{-y}.json' }); var vectorlayer = new ol.layer.vector({ source: tilevectorsource, style: new ol.style.style({ fill: new ol.style.fill({ color: '#9db9e8' }) }) }); var map = new ol.map({ target: 'map', layers: [ new ol.layer.tile({ source: new ol.source.osm() }), vectorlayer ], view: new ol.view({ center: [1877798, 6568203], zoom: 6 }) });
you have run bug see also: https://github.com/openlayers/ol3/issues/3750
the fix (https://github.com/openlayers/ol3/pull/3747) in upcoming 3.6 release
Comments
Post a Comment