mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-26 07:23:40 +00:00
Keep Mapillary viewer loading animation if canvas not yet created
This commit is contained in:
@@ -310,6 +310,11 @@ iD.services.mapillary = function() {
|
||||
};
|
||||
|
||||
mapillary.setViewerLoading = function(loading) {
|
||||
var canvas = d3.select('#content')
|
||||
.selectAll('.mly-wrapper canvas');
|
||||
|
||||
if (canvas.empty()) return; // viewer not loaded yet
|
||||
|
||||
var cover = d3.select('#content')
|
||||
.selectAll('.mly-wrapper .Cover');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user