diff --git a/datalets/leafletjs-datalet/leafletjs-datalet.html b/datalets/leafletjs-datalet/leafletjs-datalet.html index 69490b3..45f0d45 100755 --- a/datalets/leafletjs-datalet/leafletjs-datalet.html +++ b/datalets/leafletjs-datalet/leafletjs-datalet.html @@ -85,7 +85,7 @@ Example: attribution: 'Map data © OpenStreetMap contributors' }).addTo(this._component.map); - setTimeout(function() { +// setTimeout(function() { L.Icon.Default.imagePath = 'http://services.routetopa.eu/DEEalerProvider/COMPONENTS/datalets/leafletjs-datalet/leafletsjs/images'; @@ -120,7 +120,7 @@ Example: t._component.map._onResize(); t._component.map.invalidateSize(false); t._component.map.fitBounds(coordinates); - }, 1) +// }, 0) } }; @@ -170,9 +170,10 @@ Example: * * @method ready */ - attached: function(){ + ready: function(){ this.behavior = $.extend(true, {}, BaseDataletBehavior, WorkcycleBehavior, AjaxJsonAlasqlBehavior, leafletjsBehavior); - this.behavior.init(this); +// this.behavior.init(this); + this.async(function(){this.behavior.init(this)},0); } });