mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
+12
-12
@@ -464,20 +464,20 @@ export default {
|
||||
dispatch.call('loading');
|
||||
}
|
||||
|
||||
function bboxPath(tile) {
|
||||
return '/api/0.6/map?bbox=' + tile.extent.toParam();
|
||||
}
|
||||
inflight[id] = that.loadFromAPI(
|
||||
'/api/0.6/map?bbox=' + tile.extent.toParam(),
|
||||
function(err, parsed) {
|
||||
loadedTiles[id] = true;
|
||||
delete inflight[id];
|
||||
|
||||
inflight[id] = that.loadFromAPI(bboxPath(tile), function(err, parsed) {
|
||||
loadedTiles[id] = true;
|
||||
delete inflight[id];
|
||||
if (callback) {
|
||||
callback(err, _.extend({ data: parsed }, tile));
|
||||
}
|
||||
|
||||
if (callback) callback(err, _.extend({ data: parsed }, tile));
|
||||
|
||||
if (_.isEmpty(inflight)) {
|
||||
dispatch.call('loaded');
|
||||
}
|
||||
});
|
||||
if (_.isEmpty(inflight)) {
|
||||
dispatch.call('loaded');
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
"diacritics": "1.2.3",
|
||||
"lodash": "4.16.4",
|
||||
"marked": "0.3.6",
|
||||
"osm-auth": "1.0.0",
|
||||
"osm-auth": "1.0.1",
|
||||
"rbush": "2.0.1",
|
||||
"sexagesimal": "0.5.0",
|
||||
"togeojson": "0.16.0",
|
||||
|
||||
Reference in New Issue
Block a user