Re: [Gvsig_english] Issue with layer position when creating new layers

2010-05-05 Thread Flavio Pompermaier
Sorry but I have to correct my previous email: when I add the layer I try to put it on the bottom of the TOC: flayers.addLayer(0,createLayerInView(workLayer, projection)); 2010/5/5 Flavio Pompermaier fla8...@gmail.com: Hi to all, I'm using gvSIG 1.9 revision 1253 and I have some trouble whit

Re: [Gvsig_english] Issue with layer position when creating new layers

2010-05-05 Thread Antonio Falciano
Il 05/05/2010 11.46, Flavio Pompermaier ha scritto: Hi to all, I'm using gvSIG 1.9 revision 1253 and I have some trouble whit layer positioning. I have a list of layer to add on login and, if this layer is not present, I want to add it on the bottom of the toc and not on top as default.

Re: [Gvsig_english] Issue with layer position when creating new layers

2010-05-05 Thread Flavio Pompermaier
Thanks Antonio for your reply. Unfortunately I don't understand your suggestion..Should I create my own OrderManager just to put new layers on the bottom of the TOC?? The strange thing is the possibility to call Flayers.addLayer(0, layer) and ignoring the passed position paramenter...isn't it?

Re: [Gvsig_english] Issue with layer position when creating new layers

2010-05-05 Thread Antonio Falciano
Il 05/05/2010 13.31, Flavio Pompermaier ha scritto: Thanks Antonio for your reply. Unfortunately I don't understand your suggestion..Should I create my own OrderManager just to put new layers on the bottom of the TOC?? No, I was referring to the two different managers of layer ordering:

Re: [Gvsig_english] Issue with layer position when creating new layers

2010-05-05 Thread Flavio Pompermaier
I have neither SmartOrderManager nor org.gvsig.layerLoadingOrder package in my gvSIG version ...:( 2010/5/5 Antonio Falciano afalci...@yahoo.it: Il 05/05/2010 13.31, Flavio Pompermaier ha scritto: Thanks Antonio for your reply. Unfortunately I don't understand your suggestion..Should I create

Re: [Gvsig_english] Issue with layer position when creating new layers

2010-05-05 Thread Antonio Falciano
Il 05/05/2010 15.12, Flavio Pompermaier ha scritto: I have neither SmartOrderManager nor org.gvsig.layerLoadingOrder package in my gvSIG version ...:( Flavio, checkout this: http://forge.osor.eu/plugins/scmsvn/viewcvs.php/trunk/extensions/extLayerLoadingOrder/?root=gvsig-desktop ciao

Re: [Gvsig_english] Issue with layer position when creating new layers

2010-05-05 Thread Francisco José Peñarrubia
Hi Flavio. I didn't test your code, but maybe you are missing mapContext.beginAtomicEvent() and mapContext.endAtomicEvent(). I have something like this, and it works: mc.getMapContext().beginAtomicEvent(); final FLayers mcLayers = mc.getMapContext().getLayers();

Re: [Gvsig_english] Issue with layer position when creating new layers

2010-05-05 Thread Flavio Pompermaier
I tied to use your advice About mapContext.beginAtomicEvent() and mapContext.endAtomicEvent() but it didn't help :( By the way, thanks for the advice! 2010/5/5 Francisco José Peñarrubia fpena...@gmail.com: Hi Flavio. I didn't test your code, but maybe you are missing