Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Adding layers from code

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



Back to the top