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

Ingmar Eveslage eveslage at gmail.com
Sun Feb 17 03:38:42 PST 2008


I am sorry, This report was to fast. I should not write bug reports in the
middle of the night. All works fine, my fault was:

ApplicationGIS.getActiveMap() does not return null, but
ApplicationGIS.NO_MAP if no map is open. i checked this in my plugin some
lines before and this produced the problem.

Sorry. I promise i will check precisely the next time ;)

greats ingmar


Ingmar Eveslage wrote:
> 
> 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
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
> 
> 

-- 
View this message in context: http://www.nabble.com/Bug-in-ApplicationGIS.createAndOpenMap%28%29--tp15525789p15528675.html
Sent from the udig-devel mailing list archive at Nabble.com.



More information about the udig-devel mailing list