fix prettier

This commit is contained in:
mike-000
2020-04-17 00:08:11 +01:00
committed by GitHub
parent 71b866947f
commit 6519b54647
+6 -2
View File
@@ -87,7 +87,11 @@ fetch(url)
}, },
tileLoadFunction: function (tile, url) { tileLoadFunction: function (tile, url) {
const tileCoord = JSON.parse(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( const geojson = JSON.stringify(
{ {
type: 'FeatureCollection', type: 'FeatureCollection',
@@ -97,7 +101,7 @@ fetch(url)
); );
const features = format.readFeatures(geojson, { const features = format.readFeatures(geojson, {
extent: vectorSource.getTileGrid().getTileCoordExtent(tileCoord), extent: vectorSource.getTileGrid().getTileCoordExtent(tileCoord),
featureProjection: map.getView().getProjection() featureProjection: map.getView().getProjection(),
}); });
tile.setFeatures(features); tile.setFeatures(features);
}, },