[OSM-talk] JOSM landsat plugin -- Ability to move Landsat layer added
Nick Whitelegg
nick at hogweed.org
Tue Nov 7 23:43:37 GMT 2006
I have now added a facility to move the Landsat layer around in the JOSM
landsat plugin.
If you have the Landsat plugin installed, an extra toolbar button will appear
at the bottom of the modes toolbar when you open a GPX file or add data. If
you select this button while you have Landsat loaded, you will be able to
drag the Landsat around the map with the left mouse button, allowing you to
adjust it so that it aligns with OSM data.
One significant issue is that if you click the new "Move landsat" toolbar
button, the previous mode button you clicked (e.g. 'add node' or 'add
segment') will remain selected, even though you're in 'move landsat' mode.
This is due to the limitations of the JOSM plugin system; with the plugin
system alone I am unable to add the new 'move landsat' button to the same
button group as the other mode buttons.
That said, If you select 'add node' (or whatever) after you've finished
adjusting the Landsat, you will successfully switch back to the previous
mode.
Imi - I'd like to make two adjustments to the core JOSM code in order to give
more flexibility to plugin developers. Is this OK?
1. Allow plugin developers to access the ButtonGroup that the mode buttons in
JOSM are members of.
2. Allow plugin developers to override the default order of rendering nodes,
segments, and ways; this will allow areas to be drawn first, then nodes, then
non-area ways.
Nick
More information about the talk
mailing list