Re: [josm-dev] Automatic tiles downloading in WMSPlugin
Hello again, I implemented load, save (but the files are incompatible with current version), start automatic downloading, stop automatic downloading. I also implemented synchronization between threads, so only one tile is downloaded at the moment. I integrated Yahoo support (read further). I, again, would like, if somebody could test my changes. New version can be downloaded from: http://stary.czp.cuni.cz/petr/wmsplugin-3.tar.bz2 http://stary.czp.cuni.cz/petr/wmsplugin-3.patch http://stary.czp.cuni.cz/petr/wmsplugin-3.jar I realize, that ywms plugin is not working after my changes. It is almost impossible (or at least very problematic) to rewrite ywms to be able to accept more requests in one moment (at least with Firefox). Other problem is, that the plugin used dirty hack for Firefox, which is not present in version 3, so the plugin needs to be rewritten anyway. Because of this I decided to integrate Yahoo support to wmsplugin. It is much simpler than ywms (it's implemented as new grabber). What didn't change is that I am still using Yahoo web API, so I hope, I am still complying their conditions. To render the pages I am using "gnome-web-photo" application, which simply saves the png image of the website to file. The problem is, that this application is only for Linux. I need to find similar application for Windows, so if somebody knows about it, please write me. I would like to commit my changes, so my plan is following: 1) I will commit the changes to wmsplugin SVN. 2) I will commit the jar file to http://svn.openstreetmap.org/applications/editors/josm/dist/awmsplugin.jar so the old plugin will remain 3) I will write item on https://josm.openstreetmap.de/wiki/Plugins for my plugin. Something like "this plugin is experimental version of wmsplugin, so please don't use them together" 4) When the quality of the plugin raise enough, my plugin will be marked as "stable" and the current wmsplugin and ywmsp will be marked as "abandoned". If there will be no complains, I will start tomorow. ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Automatic tiles downloading in WMSPlugin
2008/9/1 Petr Dlouhý <[EMAIL PROTECTED]>: > To render the pages I am using "gnome-web-photo" application, which simply > saves the png image of the website to file. The problem is, that this > application is only for Linux. I need to find similar application for > Windows, so if somebody knows about it, please write me. >From first appearances, it should run on more than Linux. It appears to be available as a FreeBSD port and looks like it should run on any other UNIX-like system. I'm having a go at building it on my Mac. It your approach works, it will be a big improvement. Dermot -- -- Iren sind menschlich ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Automatic tiles downloading in WMSPlugin
Petr, > Because of this I > decided to integrate Yahoo support to wmsplugin. It is much simpler than > ywms (it's implemented as new grabber). What didn't change is that I am > still using Yahoo web API, so I hope, I am still complying their > conditions. I have looked at your code briefly, and I don't quite understand how the Yahoo access works. Does the gnome-web-photo application really run the Javascript that's part of Yahoo!'s API, and if so, where is the feedback channel that you need form the Javascript to your Java code telling you which zoom level was chosen and so on? This was originally implemented, I believe, using the "dump" method of firefox. I can't seem to find all this logic in your code so how does it work? Bye Frederik -- Frederik Ramm ## eMail [EMAIL PROTECTED] ## N49°00'09" E008°23'33" ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Automatic tiles downloading in WMSPlugin
I added //Resizes to the actual bounding box window.moveTo(0,0); window.resizeTo(new_width,new_height); to the web page, so the image have the right size. Maybe I get something wrong, but I thing, the tiles are fitting. Some parts of the images remain white (but "Yahoo" sign is on the right place) sometimes, but as I remember, it happend also in the old version. On Mon, 01 Sep 2008 23:04:42 +0200, Frederik Ramm <[EMAIL PROTECTED]> wrote: > Petr, > > > Because of this I >> decided to integrate Yahoo support to wmsplugin. It is much simpler >> than ywms (it's implemented as new grabber). What didn't change is >> that I am still using Yahoo web API, so I hope, I am still complying >> their conditions. > > I have looked at your code briefly, and I don't quite understand how the > Yahoo access works. Does the gnome-web-photo application really run the > Javascript that's part of Yahoo!'s API, and if so, where is the feedback > channel that you need form the Javascript to your Java code telling you > which zoom level was chosen and so on? This was originally implemented, > I believe, using the "dump" method of firefox. I can't seem to find all > this logic in your code so how does it work? > > Bye > Frederik > -- Petr Dlouhý ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Automatic tiles downloading in WMSPlugin
On Mon, 01 Sep 2008 23:51:10 +0200, Petr Dlouhý <[EMAIL PROTECTED]> wrote: > I added > > //Resizes to the actual bounding box > window.moveTo(0,0); > window.resizeTo(new_width,new_height); > > to the web page, so the image have the right size. Maybe I get something > wrong, but I thing, the tiles are fitting. > Some parts of the images remain white (but "Yahoo" sign is on the right > place) sometimes, but as I remember, it happend also in the old version. I solved the problem with white space, it is needed to round-up size of map containter to 258: // Resize map container to parameter dimension var mapDiv = document.getElementById("map"); mapDiv.style.width = Math.ceil(width/258)*258; mapDiv.style.height = Math.ceil(height/258)*258; -- Petr Dlouhý ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Automatic tiles downloading in WMSPlugin
Hello, I think, I will please Bodo, when he returns wrom holiday. I implemented something like delayed downloading, but much wiser. I implemented synchronization between threads so only one thread is downloading tiles at the moment AND the tile starts to be downloaded only, when the tile is still isible. It means, that when looking around, only few useless tiles gets downloaded. -- Petr Dlouhý ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Automatic tiles downloading in WMSPlugin
In fact, I don't need "gnome-web-photo". I just need aplication, that will print the output of the webpage to png file (or better to stdout) On Mon, 01 Sep 2008 22:40:29 +0200, Dermot McNally <[EMAIL PROTECTED]> wrote: > 2008/9/1 Petr Dlouhý <[EMAIL PROTECTED]>: > >> To render the pages I am using "gnome-web-photo" application, which >> simply >> saves the png image of the website to file. The problem is, that this >> application is only for Linux. I need to find similar application for >> Windows, so if somebody knows about it, please write me. > > From first appearances, it should run on more than Linux. It appears > to be available as a FreeBSD port and looks like it should run on any > other UNIX-like system. I'm having a go at building it on my Mac. It > your approach works, it will be a big improvement. > > Dermot > -- Petr Dlouhý ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev