I have lost track of what you are trying to accomplish with multiple Maps? As far as I can tell:
- you can open more than one map at once (and just drag them into position)
- you can open the same map more than once and have them both showing different content (yes they show the same layers, but you can position them to show different parts of the map) - you can do tricks like the Page Editor where it draws a map defined by a seperate Map Editor as part of the Page

So what is it that you are trying to accomplish?
Hm, I'm afraid that this will be more difficult. As you've stated multiple open MapEditors will always show the same content. I think that's since their MapEditorInputs always refer to the same Map object.

Let me think out loud:

Use Case "opening Map element in MapEditor in window 1":

OpenProjectElementCommand's run method contains the call ApplicationGIS.getInput
(element); (where element is of type Map.class) The call returns always the same MapEditorInput (for type Map.class) which is assigned to the MapEditor with the unique editorPartId net.refractions.udig.project.ui.mapEditor:

input.setEditorID(elements[j].getAttribute("editorPartID")); (ApplicationGIS row 401 of RC14)

Therefore, if a new Map would be opened in the MapEditor of window 1, the Map reference in MapEditorInput would be updated thereby also updating the input of the MapEditors in the other windows. Am I right?

Is there a way to assign different MapEditorInputs to the different MapEditors, so that each MapEditor can display a different Map?

Cheers,
Moni

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to