Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
Ok I installed it : http://xhema.flossk.org:8180/GWTOSM/ You put the url to load in the name field, and you can pan with the bbox fields , the last one is the zoom factor (so a bigger number is farther away). right now the bbox and the uri are not connected. code here, http://github.com/h4ck3rm1k3/GWTOsm patches welcome. mike On Tue, Jun 1, 2010 at 12:13 PM, jamesmikedup...@googlemail.com jamesmikedup...@googlemail.com wrote: it is not running yet on a public server. could deploy it on appspot. need to look into the details, right now running it in eclipse. will look into that some time. mike On Tue, Jun 1, 2010 at 12:06 PM, Peter Körner osm-li...@mazdermind.de wrote: jamesmikedup...@googlemail.com schrieb: OK, I have not been able to get the client side connection running, so I moved the http request to the java server side and not the client requests the uri via rpc and gets the data. now the program works, it can fetch an osm url and render it, the bbox is not calculated right yet, but that will be next. Can we see it running somewhere? Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
http://wiki.github.com/h4ck3rm1k3/GWTOsm/ here are the build instructions. 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 git clone git://github.com/h4ck3rm1k3/GWTOsm.git get the code ant build ant war create a war file for tomcat ant devmode test locally, you can connect in eclipse via the port : -Xrunjdwp:transport=dt_socket,address=localhost:20345,server=y,suspend=n mike On Wed, May 26, 2010 at 8:19 PM, jamesmikedup...@googlemail.com jamesmikedup...@googlemail.com wrote: Hi, I have refactored some core classes in josm to run in gwt. this includes most of data classes. I am porting the graphic output to use gwt graphics and svg output. Goal is to get the josm core code running in gwt, first the display code and then to build the the edit functions. there are ways to move also rendering to the server side, and the code is all java, compiled by gwt into javascript using a canvas object and svg data. here is a screen-shot : http://www.scribd.com/doc/32005145/Example-Out-of-gwt-osm-port code here: http://github.com/h4ck3rm1k3/GWTOsm git clone g...@github.com:h4ck3rm1k3/GWTOsm.git I am using eclipse gwt plugins : http://dl.google.com/eclipse/plugin/3.5 - http://dl.google.com/eclipse/plugin/3.5 and also the gwt-2.0.3 http://code.google.com/webtoolkit/gettingstarted.html and the two graphics libs the canvas and the vaadin gwtgraphcsi inherits name='com.google.gwt.widgetideas.WidgetIdeas' / inherits name='org.vaadin.gwtgraphics.GWTGraphics'/ Currently having problems with http requests, is using a static xml loaded into as a resource. need to rework the xml parsing, sax does not seem to be directly supported. but you can at least see node positions being displayed. more to come, all help is welcome. please help test and write test cases for josm core code. the more tests we have, the easier it is to port the code. mike ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
jamesmikedup...@googlemail.com schrieb: OK, I have not been able to get the client side connection running, so I moved the http request to the java server side and not the client requests the uri via rpc and gets the data. now the program works, it can fetch an osm url and render it, the bbox is not calculated right yet, but that will be next. Can we see it running somewhere? Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
it is not running yet on a public server. could deploy it on appspot. need to look into the details, right now running it in eclipse. will look into that some time. mike On Tue, Jun 1, 2010 at 12:06 PM, Peter Körner osm-li...@mazdermind.dewrote: jamesmikedup...@googlemail.com schrieb: OK, I have not been able to get the client side connection running, so I moved the http request to the java server side and not the client requests the uri via rpc and gets the data. now the program works, it can fetch an osm url and render it, the bbox is not calculated right yet, but that will be next. Can we see it running somewhere? Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
2010/5/30 Peter Körner osm-li...@mazdermind.de: I'm sorry but I'm really not sure what this is all about. Josm is designed as an offline editing tools. Why bend'n'break it to run in your browser? We already have an online editor called Potlatch. Current potlatch somehow disqualifies in some areas (e.g. Italy) because of its lack to use WMS-layers and not just Yahoo-Imagery. For example in Italy Yahoo-imagery has quite some offset and very poor resolution compared to the aerial imagery available from PCN. Probably the same issue occurs in Australia (Nearmap). I agree that these issues may be obsolete when Potlatch 2.0 will be available. cheers, Martin ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
On 31 May 2010 18:38, M∡rtin Koppenhoefer dieterdre...@gmail.com wrote: resolution compared to the aerial imagery available from PCN. Probably the same issue occurs in Australia (Nearmap). Potlatch can use Nearmap imagery just fine... ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
Andrew Gregory wrote: On Mon, 31 May 2010 00:40:57 +0800, Peter Körner osm-li...@mazdermind.de wrote: Am 30.05.2010 17:22, schrieb jamesmikedup...@googlemail.com: I am happy to say, have made some progress. gwtosm now can display simple roads. I'm sorry but I'm really not sure what this is all about. Josm is designed as an offline editing tools. Why bend'n'break it to run in your browser? We already have an online editor called Potlatch. I think a web-based online editor that doesn't rely on a plugin would be a good thing. +1 @jamesmikedupont: What is your vision for this project? Do you try to create a cut down version of JOSM that runs in a browser or will it be a completely new editor that happens to reuse some source code from another project? What are the limitations of a gwt/js port? Is it still possible to open a local gpx file or do I have to upload it to some server, first? Same question for image files. Anyway, great idea, let's see how it performs compared to the java version! Sebastian PS: Maybe you can find a better name for this... What about JOSM-- :) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
On Mon, May 31, 2010 at 1:58 PM, Sebastian Klein basti...@googlemail.com wrote: Andrew Gregory wrote: On Mon, 31 May 2010 00:40:57 +0800, Peter Körner osm-li...@mazdermind.de wrote: Am 30.05.2010 17:22, schrieb jamesmikedup...@googlemail.com: I am happy to say, have made some progress. gwtosm now can display simple roads. I'm sorry but I'm really not sure what this is all about. Josm is designed as an offline editing tools. Why bend'n'break it to run in your browser? We already have an online editor called Potlatch. I think a web-based online editor that doesn't rely on a plugin would be a good thing. +1 @jamesmikedupont: What is your vision for this project? My vision is to implement as much of the jsom as possible on the gwt. Basically first to implement the rendering, then the editing. I am starting to get an idea of a svg renderer and using svg stylesheets to select how to style to maps. also click handling can be done via svg. But my vision is basically to create a set of patches for jsom that will separate the core map storage, rendering and navigation in a reusable java component and to move the platform specific code to a gwt or swing/awt lib. mike Do you try to create a cut down version of JOSM that runs in a browser or will it be a completely new editor that happens to reuse some source code from another project? What are the limitations of a gwt/js port? Is it still possible to open a local gpx file or do I have to upload it to some server, first? Same question for image files. I think it should be possible to read local files if they are for example selected in an upload bot or accessible via an http request http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/HTTPRequest.html Anyway, great idea, let's see how it performs compared to the java version! Sebastian PS: Maybe you can find a better name for this... What about JOSM-- :) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
Today, I was able to get the zoom, and bounding boxes to be dynamically be changed. next to add in the ability to load data from the api server. mike On Wed, May 26, 2010 at 8:19 PM, jamesmikedup...@googlemail.com jamesmikedup...@googlemail.com wrote: Hi, I have refactored some core classes in josm to run in gwt. this includes most of data classes. I am porting the graphic output to use gwt graphics and svg output. Goal is to get the josm core code running in gwt, first the display code and then to build the the edit functions. there are ways to move also rendering to the server side, and the code is all java, compiled by gwt into javascript using a canvas object and svg data. here is a screen-shot : http://www.scribd.com/doc/32005145/Example-Out-of-gwt-osm-port code here: http://github.com/h4ck3rm1k3/GWTOsm git clone g...@github.com:h4ck3rm1k3/GWTOsm.git I am using eclipse gwt plugins : http://dl.google.com/eclipse/plugin/3.5 - http://dl.google.com/eclipse/plugin/3.5 and also the gwt-2.0.3 http://code.google.com/webtoolkit/gettingstarted.html and the two graphics libs the canvas and the vaadin gwtgraphcsi inherits name='com.google.gwt.widgetideas.WidgetIdeas' / inherits name='org.vaadin.gwtgraphics.GWTGraphics'/ Currently having problems with http requests, is using a static xml loaded into as a resource. need to rework the xml parsing, sax does not seem to be directly supported. but you can at least see node positions being displayed. more to come, all help is welcome. please help test and write test cases for josm core code. the more tests we have, the easier it is to port the code. mike ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
OK, I have not been able to get the client side connection running, so I moved the http request to the java server side and not the client requests the uri via rpc and gets the data. now the program works, it can fetch an osm url and render it, the bbox is not calculated right yet, but that will be next. mike On Mon, May 31, 2010 at 7:38 PM, jamesmikedup...@googlemail.com jamesmikedup...@googlemail.com wrote: Today, I was able to get the zoom, and bounding boxes to be dynamically be changed. next to add in the ability to load data from the api server. mike On Wed, May 26, 2010 at 8:19 PM, jamesmikedup...@googlemail.com jamesmikedup...@googlemail.com wrote: Hi, I have refactored some core classes in josm to run in gwt. this includes most of data classes. I am porting the graphic output to use gwt graphics and svg output. Goal is to get the josm core code running in gwt, first the display code and then to build the the edit functions. there are ways to move also rendering to the server side, and the code is all java, compiled by gwt into javascript using a canvas object and svg data. here is a screen-shot : http://www.scribd.com/doc/32005145/Example-Out-of-gwt-osm-port code here: http://github.com/h4ck3rm1k3/GWTOsm git clone g...@github.com:h4ck3rm1k3/GWTOsm.git I am using eclipse gwt plugins : http://dl.google.com/eclipse/plugin/3.5 - http://dl.google.com/eclipse/plugin/3.5 and also the gwt-2.0.3 http://code.google.com/webtoolkit/gettingstarted.html and the two graphics libs the canvas and the vaadin gwtgraphcsi inherits name='com.google.gwt.widgetideas.WidgetIdeas' / inherits name='org.vaadin.gwtgraphics.GWTGraphics'/ Currently having problems with http requests, is using a static xml loaded into as a resource. need to rework the xml parsing, sax does not seem to be directly supported. but you can at least see node positions being displayed. more to come, all help is welcome. please help test and write test cases for josm core code. the more tests we have, the easier it is to port the code. mike ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
this is a fun project that you can learn from. I hope people will help out. peace, mike On Sun, May 30, 2010 at 6:40 PM, Peter Körner osm-li...@mazdermind.de wrote: Am 30.05.2010 17:22, schrieb jamesmikedup...@googlemail.com: I am happy to say, have made some progress. gwtosm now can display simple roads. I'm sorry but I'm really not sure what this is all about. Josm is designed as an offline editing tools. Why bend'n'break it to run in your browser? We already have an online editor called Potlatch. Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
Am 30.05.2010 20:45, schrieb jamesmikedup...@googlemail.com: this is a fun project that you can learn from. I hope people will help out. Oh yes, I like that :) At least I now know that I didn't miss anything important. Have fun! Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
On Wed, May 26, 2010 at 19:17, Frederik Ramm frede...@remote.org wrote: jamesmikedup...@googlemail.com wrote: I have refactored some core classes in josm to run in gwt. this includes most of data classes. I am porting the graphic output to use gwt graphics and svg output. Might be worth taking this to the josm-dev list. Also, to those unfamiliar with gwt, explain the advantages. These examples might be useful: http://code.google.com/webtoolkit/examples/ Basically it's a Java to JavaScript compiler and UI toolkit. You can write Java which is then magically compiled to a web application. This is a great development. It might also help to generalize the JOSM core more, right now it's very tightly bound to its current UI. It would be neat if there was a Java libosm that could be used for stuff like this, and things like Android apps. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
thanks for the props Ævar, yes, I have started to create a cut down navigable object that is used to control the view, also, removed most of the preferenced and turned them into fields loaded from constants. What we need are test cases, test suites to verify that the code is running well. mike On Wed, May 26, 2010 at 9:35 PM, Ævar Arnfjörð Bjarmason ava...@gmail.com wrote: On Wed, May 26, 2010 at 19:17, Frederik Ramm frede...@remote.org wrote: jamesmikedup...@googlemail.com wrote: I have refactored some core classes in josm to run in gwt. this includes most of data classes. I am porting the graphic output to use gwt graphics and svg output. Might be worth taking this to the josm-dev list. Also, to those unfamiliar with gwt, explain the advantages. These examples might be useful: http://code.google.com/webtoolkit/examples/ Basically it's a Java to JavaScript compiler and UI toolkit. You can write Java which is then magically compiled to a web application. This is a great development. It might also help to generalize the JOSM core more, right now it's very tightly bound to its current UI. It would be neat if there was a Java libosm that could be used for stuff like this, and things like Android apps. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] start of gwtosm the google webtoolkit port of josm
Hello, just a side node on the subject. I'm not a professionnal of gwt, just heard and watch a few demo/examples about it. Looks more like a last chance solution or Magic like you said. Does it worth the time spend ? I mean you could much more easely make : - Java applet - Java Web Start - JavaFX. Without much change in the code (perhaps even none). Any of thoses solutions also have the benefit of speed and compatibility on browsers. I know some will say that it might be bigger to download, but I'm not so sure anymore with the latest pack200 compresion the application size can be reduced by 50 to 70% (any even more combine with other tools) and once downloaded won't require any more download if you close/reopen the browser. What are gwt benefits in this case ? johann sorel Le 26/05/2010 21:39, jamesmikedup...@googlemail.com a écrit : thanks for the props Ævar, yes, I have started to create a cut down navigable object that is used to control the view, also, removed most of the preferenced and turned them into fields loaded from constants. What we need are test cases, test suites to verify that the code is running well. mike On Wed, May 26, 2010 at 9:35 PM, Ævar Arnfjörð Bjarmason ava...@gmail.com wrote: On Wed, May 26, 2010 at 19:17, Frederik Rammfrede...@remote.org wrote: jamesmikedup...@googlemail.com wrote: I have refactored some core classes in josm to run in gwt. this includes most of data classes. I am porting the graphic output to use gwt graphics and svg output. Might be worth taking this to the josm-dev list. Also, to those unfamiliar with gwt, explain the advantages. These examples might be useful: http://code.google.com/webtoolkit/examples/ Basically it's a Java to JavaScript compiler and UI toolkit. You can write Java which is then magically compiled to a web application. This is a great development. It might also help to generalize the JOSM core more, right now it's very tightly bound to its current UI. It would be neat if there was a Java libosm that could be used for stuff like this, and things like Android apps. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev