[udig-devel] Bug in ApplicationGIS.createAndOpenMap();

Ingmar Eveslage eveslage at gmail.com
Sat Feb 16 19:02:08 PST 2008


I found the following problem:

i start a fresh udig instance. no project open, no map open.

i load i view and this creates a map with one resource:

	List<IGeoResource> resourceList = new LinkedList<IGeoResource>();
	resourceList.add(esDataResource);
	
	ApplicationGIS.createAndOpenMap(resourceList, null, true);

this command should wait until the map and the layer is created. but  
it does not wait. the method comes back immediately.

if one map is allready open, the command works perfekt. it waits until  
the new map is opended and the resource is added to the layer.

is there another way to open a new map (the first map, without opened  
a project/map before) and then add a layer?

thanks forward for your help.

greats ingmar


More information about the udig-devel mailing list