JOSM/GwtOsm

From OpenStreetMap Wiki
Jump to navigation Jump to search

Welcome to the GWTOsm wiki page!

see the wikipage here http://wiki.github.com/h4ck3rm1k3/GWTOsm/

This is a project to get JOSM https://josm.openstreetmap.de/ running on GWT.

I have started first by compiling just the core org.openstreetmap.josm.data classes. first I have reworked them (hacked) that they would compile without the huge dependancies. I broke the dependancies on the awt and swing components.

Then I reworked the code to compile with GWT, and that is still in progress. I broke alot of the code in the process.

Now at least it will compile and run, but is alot more to do.

Test server is here: http://xhema.flossk.org:8180/GWTOSM/

Now junit is running and basic roads are renderings. http://osmopenlayers.blogspot.com/2010/05/next-version-of-gwtosm.html

Styles

Line Styles , how to apply them? I want to use svg styles and css stylesheets.

Colors from internal to standard . use stylesheets.


Install

GWT

http://code.google.com/webtoolkit/download.html or just copy it like this

mkdir ~/GWTOSM

cd ~/GWTOSM

##install google web kit sdk, very simple.

wget http://google-web-toolkit.googlecode.com/files/gwt-2.0.3.zip
unzip gwt-2.0.3.zip
export GWTPATH=~/GWTOSM/gwt-2.0.3

Tomcat

get tomcat running, add a user and give it permissions to send out data.

use this 04webapps.policy for debian/ubuntu gnu linux http://github.com/h4ck3rm1k3/GWTOsm/blob/master/04webapps.policy see also here: http://code.google.com/p/gwt-examples/wiki/gwtTomcat

cd ~/GWTOSM

#  get the code
git clone git://github.com/h4ck3rm1k3/GWTOsm.git

#  build 
ant

#  create a war file for tomcat
ant war

# deploy this to the tomcat server

#  test locally, you can connect in eclipse via the port :
 #      -Xrunjdwp:transport=dt_socket,address=localhost:20345,server=y,suspend=n
ant devmode

examples

GwtOutputTest.svg