fix prettier
This commit is contained in:
@@ -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);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user