Re: [OSM-talk] JOSM WMS plugin, Y!, and firefox 3
On Tue, May 20, 2008 at 1:21 AM, Tom Hughes <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]> > Gervase Markham <[EMAIL PROTECTED]> wrote: > > > A custom XULRunner app is probably a bit heavyweight for what we want. I > > would suggest that the YWMS team look into creating a lightweight > > Firefox extension which uses some form of IPC to exchange data with the > > running JOSM. > > So what we need is a firefox expert... > > I guess the alternative is a java native interface that invokes Gecko > directly or something? > I already tested that way, but heavyweight components (XULRunner) don't combine well with Swing components (JOSM). I have a very basic prototype using a swing browser component (the Cobra library) inside JOSM displaying an openlayers frame, but didn't have time to continue it. If anyone is interested to continue it, I can give the sources or commit it to SVN. Quico ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] JOSM WMS plugin, Y!, and firefox 3
In message <[EMAIL PROTECTED]> Gervase Markham <[EMAIL PROTECTED]> wrote: > I emailed Robert O'Callahan, one of the Mozilla Gecko developers. > > I asked: > > > Is there any other way of doing what they want to do with Firefox 3? > > And he replied: > > > Yes. One way would be to write a Firefox extension or a custom > > XULRunner app and use canvas.drawWindow. > > So the good news is that you don't need a debug build :-) > http://developer.mozilla.org/en/docs/Drawing_Graphics_with_Canvas#Additional_Features Cool. > A custom XULRunner app is probably a bit heavyweight for what we want. I > would suggest that the YWMS team look into creating a lightweight > Firefox extension which uses some form of IPC to exchange data with the > running JOSM. So what we need is a firefox expert... I guess the alternative is a java native interface that invokes Gecko directly or something? Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] JOSM WMS plugin, Y!, and firefox 3
Tom Hughes wrote: > It's not immediately clear from the bug details that there is any > replacement - my best guess at the moment is that there is but that it > can only be activated programmatically, and possible only in debug > builds. I emailed Robert O'Callahan, one of the Mozilla Gecko developers. I asked: > Is there any other way of doing what they want to do with Firefox 3? And he replied: > Yes. One way would be to write a Firefox extension or a custom > XULRunner app and use canvas.drawWindow. So the good news is that you don't need a debug build :-) http://developer.mozilla.org/en/docs/Drawing_Graphics_with_Canvas#Additional_Features A custom XULRunner app is probably a bit heavyweight for what we want. I would suggest that the YWMS team look into creating a lightweight Firefox extension which uses some form of IPC to exchange data with the running JOSM. Of course, once you have an extension, assuming the deal with Yahoo doesn't prevent it, you would probably just want to grab the tile images directly from the DOM rather than screenshot the page and try and find the edges of the map section. So perhaps canvas.drawWindow isn't actually what you want. Gerv ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] JOSM WMS plugin, Y!, and firefox 3
2008/5/15 Ludwig <[EMAIL PROTECTED]>: > I think it is said somewhere (http://wiki.openstreetmap.org/index.php/YWMS): > > If you are using Firefox 3, as your main browser, YWMS will not work for > some reason. You must install a copy of Firefox 2, and use that instead. > However, if Firefox 3 is already running it will use that window instead. To > open both versions at the same time, use the -profile switch to open the > profile manager. "firefox-2 -P" should work for Linux. > > If you set the path for firefox to the version 2 (which is usually still > there if you install FF3) it will open FF2 for the connection unless FF3 is > running. I tend to close FF3 when I use the plugin and then it works, albeit > sometimes only after the second try. I've tracked the breakage down to the fix for https://bugzilla.mozilla.org/show_bug.cgi?id=379015 which seems to have removed support for MOZ_FORCE_PAINT_AFTER_ONLOAD as a side effect. It's not immediately clear from the bug details that there is any replacement - my best guess at the moment is that there is but that it can only be activated programmatically, and possible only in debug builds. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] JOSM WMS plugin, Y!, and firefox 3
I think it is said somewhere (http://wiki.openstreetmap.org/index.php/YWMS): If you are using Firefox 3, as your main browser, YWMS will not work for some reason. You must install a copy of Firefox 2, and use that instead. However, if Firefox 3 is already running it will use that window instead. To open both versions at the same time, use the -profile switch to open the profile manager. "firefox-2 -P" should work for Linux. If you set the path for firefox to the version 2 (which is usually still there if you install FF3) it will open FF2 for the connection unless FF3 is running. I tend to close FF3 when I use the plugin and then it works, albeit sometimes only after the second try. HTH Ludwig 2008/5/15 Farzaneh Sarafraz <[EMAIL PROTECTED]>: > Hi, > > I was wondering if it is only me who has a problem with the WMS plugin > after upgrading to FF3. The Y! image appears in the browser window, but I > get error 500 in JOSM. > > Cheers, > Farzaneh. > > > ___ > talk mailing list > talk@openstreetmap.org > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk > > ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
[OSM-talk] JOSM WMS plugin, Y!, and firefox 3
Hi, I was wondering if it is only me who has a problem with the WMS plugin after upgrading to FF3. The Y! image appears in the browser window, but I get error 500 in JOSM. Cheers, Farzaneh. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk