Jesse Eichar wrote:
It looks like you are using uDig 1.1. If that is correct then you can
use the method:
ApplicationGIS.addLayersToMap(map, layers, startposition,
project);
or
IMap map;
map.sendCommandASync(new AddLayerCommand(layer) );
Jesse
Some of this information was in the FAQ:
-
http://udig.refractions.net/confluence/display/DEV/How+do+I+create+a+map+programmatically%3F
And I have added the following:
-
http://udig.refractions.net/confluence/display/DEV/How+do+I+add+a+layer+progammatically%3F
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel