Commit 4f3cbd9413f45943cc3f261491dbcf48240d7a40

Authored by Renato De Donato
1 parent f5bd91c5

map bug

datalets/leafletjs-datalet/leafletjs-datalet.html
... ... @@ -85,7 +85,7 @@ Example:
85 85 attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors'
86 86 }).addTo(this._component.map);
87 87  
88   - setTimeout(function() {
  88 +// setTimeout(function() {
89 89  
90 90 L.Icon.Default.imagePath = 'http://services.routetopa.eu/DEEalerProvider/COMPONENTS/datalets/leafletjs-datalet/leafletsjs/images';
91 91  
... ... @@ -120,7 +120,7 @@ Example:
120 120 t._component.map._onResize();
121 121 t._component.map.invalidateSize(false);
122 122 t._component.map.fitBounds(coordinates);
123   - }, 1)
  123 +// }, 0)
124 124 }
125 125 };
126 126  
... ... @@ -170,9 +170,10 @@ Example:
170 170 *
171 171 * @method ready
172 172 */
173   - attached: function(){
  173 + ready: function(){
174 174 this.behavior = $.extend(true, {}, BaseDataletBehavior, WorkcycleBehavior, AjaxJsonAlasqlBehavior, leafletjsBehavior);
175   - this.behavior.init(this);
  175 +// this.behavior.init(this);
  176 + this.async(function(){this.behavior.init(this)},0);
176 177 }
177 178 });
178 179 </script>
... ...