Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] change layer and bounding box in one command

Hi list,
I want to do programatically these two things with just one wms request
a) change a layer set (change the wms server)
b) change the boundingbox of the map
 
a) is realized with the "createManyLayers(List<Layer>)" command
b) is realized with the Navigation...createSetViewportBBoxCommand(Envelope)
 
if a) happens before b) then I got two wms request: one with the old bounding box and one with the new. this happens only when the  createManyLayers command is Sync. If it is ASync the second command has no effect and I have the old bounding box.
 
if b) happens before a) then I have also problems since the bounding box is not correct set.
 
How can execute both commands without having two wms requests?
 
we are still using udig 1.1RC8
 
tony roth
 

Back to the top