Take advantage of default tile grid

This commit is contained in:
Tim Schaub
2017-08-12 15:40:36 -06:00
parent 3b444978a7
commit 29fcf5f1c2
2 changed files with 1 additions and 5 deletions

View File

@@ -6,7 +6,6 @@ goog.require('ol.source.OSM');
goog.require('ol.source.VectorTile');
goog.require('ol.layer.Tile');
goog.require('ol.layer.VectorTile');
goog.require('ol.tilegrid');
goog.require('ol.proj.Projection');
@@ -77,7 +76,6 @@ fetch(url).then(function(response) {
});
var vectorSource = new ol.source.VectorTile({
format: new ol.format.GeoJSON(),
tileGrid: ol.tilegrid.createXYZ(),
tileLoadFunction: function(tile) {
var format = tile.getFormat();
var tileCoord = tile.getTileCoord();