gwty-leaflet: features and upcoming changes
As the 1.0 version of leaflet has came out recently, gwty-leaflet is undergoing API changes to adapt to the changes in leaflet. The change set between 0.7 and 1.0 is pretty significant, so the changes are introduced gradually into the 0.5-SNAPSHOT version. The 0.4 version of gwty-leaflet has been moved to a different branch that will be maintained in parallel: https://github.com/gwidgets/gwty-leaflet/tree/v0.4.
Concerning the new features, a dynamic script loading feature has been added to leaflet, to allow loading leaflet resource files (leaflet.js, and leaflet.css) from GWT code, in the same fashion as Polymer. The LeafletResources.whenready() method uses a callback to insert the code for map creation and manipulation that will executed when resources are ready. Here is an example below: