[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [udig-devel] change layer and bounding box in one command | 
I think you can do a compound command.
You can also make your own custom command and change both things in one 
go...
Jody
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
 
------------------------------------------------------------------------
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel