Get tilePixelRatio from MVT tiles

This commit is contained in:
Andreas Hocevar
2017-08-02 17:45:55 +02:00
parent 007d8c2d5e
commit b3be7e7ba9
11 changed files with 113 additions and 25 deletions

View File

@@ -44,7 +44,6 @@ var map = new ol.Map({
resolutions: resolutions,
tileSize: 512
}),
tilePixelRatio: 8,
tileUrlFunction: tileUrlFunction
}),
style: createMapboxStreetsV6Style()

View File

@@ -24,7 +24,6 @@ var map = new ol.Map({
'OpenStreetMap contributors</a>',
format: new ol.format.MVT(),
tileGrid: ol.tilegrid.createXYZ({tileSize: 512, maxZoom: 22}),
tilePixelRatio: 8,
url: 'https://{a-d}.tiles.mapbox.com/v4/mapbox.mapbox-streets-v6/' +
'{z}/{x}/{y}.vector.pbf?access_token=' + key
}),