diff --git a/examples/geojson-vt.js b/examples/geojson-vt.js index e9cac835d0..a19a8f1748 100644 --- a/examples/geojson-vt.js +++ b/examples/geojson-vt.js @@ -87,7 +87,11 @@ fetch(url) }, tileLoadFunction: function (tile, url) { const tileCoord = JSON.parse(url); - const data = tileIndex.getTile(tileCoord[0], tileCoord[1], tileCoord[2]); + const data = tileIndex.getTile( + tileCoord[0], + tileCoord[1], + tileCoord[2] + ); const geojson = JSON.stringify( { type: 'FeatureCollection', @@ -97,7 +101,7 @@ fetch(url) ); const features = format.readFeatures(geojson, { extent: vectorSource.getTileGrid().getTileCoordExtent(tileCoord), - featureProjection: map.getView().getProjection() + featureProjection: map.getView().getProjection(), }); tile.setFeatures(features); },