Add guard code for if Mapillary viewer could not be initialized

This commit is contained in:
Bryan Housel
2018-07-09 16:17:09 -04:00
parent 9c275d58b5
commit 1395e029d9
+2 -2
View File
@@ -440,7 +440,7 @@ export default {
var isHidden = wrap.selectAll('.photo-wrapper.mly-wrapper.hide').size();
if (isHidden) {
if (isHidden && _mlyViewer) {
wrap
.selectAll('.photo-wrapper:not(.mly-wrapper)')
.classed('hide', true);
@@ -497,7 +497,7 @@ export default {
initViewer: function(imageKey, context) {
var that = this;
if (Mapillary && imageKey) {
if (window.Mapillary && imageKey) {
var opts = {
baseImageSize: 320,
component: {