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

Jesse Eichar jeichar at refractions.net
Mon Feb 18 05:45:45 PST 2008


Not a problem.  I'm glad that its not a bug since its a pretty  
important piece of functionality.
Le 17-Feb-08 à 3:38 AM, Ingmar Eveslage a écrit :

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



More information about the udig-devel mailing list