mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
only fetch vegbilder layers if they are needed
i.e. when enabling the respective street-side photo layer
This commit is contained in:
@@ -308,11 +308,8 @@ function searchLimited(limit, projection, rtree) {
|
||||
|
||||
export default {
|
||||
|
||||
init: async function () {
|
||||
init: function () {
|
||||
this.event = utilRebind(this, dispatch, 'on');
|
||||
if (!_vegbilderCache) {
|
||||
await this.reset();
|
||||
}
|
||||
},
|
||||
|
||||
reset: async function () {
|
||||
@@ -383,10 +380,13 @@ export default {
|
||||
},
|
||||
|
||||
getSequenceForImage: function (image) {
|
||||
return _vegbilderCache.image2sequence_map.get(image?.key);
|
||||
},
|
||||
return _vegbilderCache?.image2sequence_map.get(image?.key);
|
||||
},
|
||||
|
||||
loadImages: function (context, margin) {
|
||||
loadImages: async function (context, margin) {
|
||||
if (!_vegbilderCache) {
|
||||
await this.reset();
|
||||
}
|
||||
margin ??= 1;
|
||||
const wfslayers = filterAvailableLayers(context.photos());
|
||||
loadWFSLayers(context.projection, margin, wfslayers);
|
||||
|
||||
Reference in New Issue
Block a user