Commit 4f3cbd9413f45943cc3f261491dbcf48240d7a40
1 parent
f5bd91c5
map bug
Showing
1 changed file
with
5 additions
and
4 deletions
datalets/leafletjs-datalet/leafletjs-datalet.html
@@ -85,7 +85,7 @@ Example: | @@ -85,7 +85,7 @@ Example: | ||
85 | attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors' | 85 | attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors' |
86 | }).addTo(this._component.map); | 86 | }).addTo(this._component.map); |
87 | 87 | ||
88 | - setTimeout(function() { | 88 | +// setTimeout(function() { |
89 | 89 | ||
90 | L.Icon.Default.imagePath = 'http://services.routetopa.eu/DEEalerProvider/COMPONENTS/datalets/leafletjs-datalet/leafletsjs/images'; | 90 | L.Icon.Default.imagePath = 'http://services.routetopa.eu/DEEalerProvider/COMPONENTS/datalets/leafletjs-datalet/leafletsjs/images'; |
91 | 91 | ||
@@ -120,7 +120,7 @@ Example: | @@ -120,7 +120,7 @@ Example: | ||
120 | t._component.map._onResize(); | 120 | t._component.map._onResize(); |
121 | t._component.map.invalidateSize(false); | 121 | t._component.map.invalidateSize(false); |
122 | t._component.map.fitBounds(coordinates); | 122 | t._component.map.fitBounds(coordinates); |
123 | - }, 1) | 123 | +// }, 0) |
124 | } | 124 | } |
125 | }; | 125 | }; |
126 | 126 | ||
@@ -170,9 +170,10 @@ Example: | @@ -170,9 +170,10 @@ Example: | ||
170 | * | 170 | * |
171 | * @method ready | 171 | * @method ready |
172 | */ | 172 | */ |
173 | - attached: function(){ | 173 | + ready: function(){ |
174 | this.behavior = $.extend(true, {}, BaseDataletBehavior, WorkcycleBehavior, AjaxJsonAlasqlBehavior, leafletjsBehavior); | 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 | </script> | 179 | </script> |