[josm-dev] Cleaning MapView
Michael Zangl
openstreetmap at michael.fam-zangl.net
Tue Sep 8 13:24:58 UTC 2015
Am 08.09.2015 um 14:28 schrieb Dirk Stöcker:
> On Tue, 8 Sep 2015, Michael Zangl wrote:
>
>> Currently, MapView is a collection of global flags, variables and lots
>> of stuff that has nothing to do with simply viewing the map. Some fields
>> are not even accessed by MapView itself and only used as global flag.
>
> If you modify MapView, please keep one major goal in mind: E.g. in
> conflict resolution and relation view it would be a good idea to display
> different datasets (e.g. before, after). If the whole code can be
> capsulated enough, so that this is possible, that would be a major step
> forward, especially for conflict resolution. Mainly this means MapView
> (the view component, not the stuff around) should be reusable in
> different places and accept different data sets.
Yes, this is my main goal. I also thought of a small overview MapView in
the sidebar to not get lost when mapping details so easily. The long
term goal should be to make the MapView a real view that can be
instanced as many times as you want (even 0 times, which allows you to
run JOSM without a GUI).
The layer code I wrote already supports multiple layer sets, so you can
even have one view displaying the old OSM state + Bing and one view
displaying the new state + Bing.
Michael
More information about the josm-dev
mailing list