gwidgets / gwty-leaflet

A GWT JsInterop wrapper for Leaflet.
Apache License 2.0
32 stars 14 forks source link

LeafletResources path #14

Open AreaInsights opened 6 years ago

AreaInsights commented 6 years ago

Can I recommend using GWT.getModuleBaseForStaticFiles() instead of GWT.getModuleName() in LeafletResources? In my case, my page was not the root.. eg /some/path which resulted in LeafletResources looking for /some/path/gwt_module_name/leaflet/leaflet.js.

Using GWT.getModuleBaseForStaticFiles(), LeafletResources instead looks for /gwt_module_name/leaflet/leaflet.js as expected

zak905 commented 6 years ago

Sounds good. I am gonna create a new snapshot version

Thanks