fix #1068 - blank layer chooser on mobile

This commit is contained in:
Jon Atkins
2015-10-23 22:50:12 +01:00
parent 3f0d924b6a
commit db12b07540

View File

@ -575,6 +575,14 @@ window.setupLayerChooserApi = function() {
// call through // call through
return _update.apply(this, arguments); return _update.apply(this, arguments);
} }
// as this setupLayerChooserApi function is called after the layer menu is populated, we need to also get they layers once
// so they're passed through to the android app
try {
if(typeof android != 'undefined')
window.layerChooser.getLayers();
} catch(e) {
console.error(e);
}
} }
// BOOTING /////////////////////////////////////////////////////////// // BOOTING ///////////////////////////////////////////////////////////