Maps Offline

103 views
Skip to first unread message

elviento

unread,
Aug 24, 2009, 9:28:01 AM8/24/09
to GWT-Ext Developer Forum
My goal is to take GWT-EXT maps functionality offline (run on
localhost).

I have accomplished this using OpenLayers GWT (openlayers_gwt-0.4.jar
& OpenLayers.js) with GeoServer backend. I prefer not to use it
because of its lack of javadocs documentation and sole support for
OpenLayers.

Does anyone know how I can take GWT-EXT maps functionality offline?

This is what I've done so far:
(1) unzip gwtext-2.0.6.zip

(2) Imported ~/gwtext-2.0.6/samples/Maps/* into my eclipse project

(3) change line "<script type="text/javascript" src="http://
openlayers.org/api/OpenLayers.js"></script>" to "<script
src="OpenLayers-2.8/OpenLayers.js" type="text/javascript"></script>"

(4) Now to my real questions and issues!

For maps/imagery I can use .OSM files from OpenStreetMaps or refer to
my own image files on the localhost. I can draw polylines (GWT-EXT
OpenLayersMap does not currently support!?) on top of OpenStreetMap.
How can take OpenStreetMap offline like I've done for OpenLayers? Is
there a javascript source file and how can I change the GWT-EXT sample
maps source to reflect this?

When I create a new instance of OpenStreetMaps map how do I get it to
stop referencing this external URL source API?

Does anyone know if it is possible to draw Polylines on top of
OpenLayers with GWT-EXT?

Thanks for your help! This has been a deal breaker for me but I feel
it is solvable! GWT-EXT is elegant and well documented so I would
like to continue along this path. If there is a better way to
approach this problem I would like to know.

Thanks,



elviento

unread,
Aug 28, 2009, 9:27:01 AM8/28/09
to GWT-Ext Developer Forum
> My goal is to take GWT-EXT maps functionality offline (run on
> localhost).

It appears that GWT-EXT developers should look at GWT-Openlayers
source code which you can find here http://sourceforge.net/projects/gwt-openlayers/files/

GWT-Openlayers supports Web Map Service (WMS) and one is able to
tailor the path to your imagery server (not necessarly online) to read
ones own GIS data. This service doesn't appear to be offered in the
current version of GWT-EXT and is limited to the features inherit to
the code and javascript referring to external map sources like Google,
Yahoo, OpenStreetMaps, etc ...

GWT-Openlayers does also support Map Overlays and I'm in the process
of overlaying Polylines and other using this API.

Has anyone had any experience with this or have some example code for
plotting Polylines and/or doing Map Overlays with multiple layers?

Thanks,
Reply all
Reply to author
Forward
0 new messages