Keep Mapillary viewer loading animation if canvas not yet created

This commit is contained in:
Bryan Housel
2016-06-07 15:47:20 -04:00
parent 2e43437cf6
commit 4289afa6fe

View File

@@ -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');