another try, this time on JS side
This commit is contained in:
@ -519,7 +519,11 @@ window.setupLayerChooserApi = function() {
|
|||||||
var baseLayersJSON = JSON.stringify(baseLayers);
|
var baseLayersJSON = JSON.stringify(baseLayers);
|
||||||
|
|
||||||
if (typeof android !== 'undefined' && android && android.setLayers) {
|
if (typeof android !== 'undefined' && android && android.setLayers) {
|
||||||
|
if(this.androidTimer) clearTimeout(this.androidTimer);
|
||||||
|
this.androidTimer = setTimeout(function() {
|
||||||
|
this.androidTimer = null;
|
||||||
android.setLayers(baseLayersJSON, overlayLayersJSON);
|
android.setLayers(baseLayersJSON, overlayLayersJSON);
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user