mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Add guard code for if Mapillary viewer could not be initialized
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user