hi everybody!
please I'm stucked on that, and should not be very difficult...
In my application I dynamically create (php/Ajax) new SLDs; now what I need
is to communicate to mapbuilder (1.5-alpha1)  that I want to visualize some
layers from the WMC in these new styles (created for working on Geoserver).
So, I have to change the value of /wmc:Style/wmc:Name. 
I've already read
"http://docs.codehaus.org/display/MAP/Step+9+Drawing+Custom+Points"; where
explains the use of <nodeSelectXpath> , so I've set up in my ContextModel
(mainMap) 
the nodeSelectXpath as
/wmc:ViewContext/wmc:LayerList/wmc:Layer/wmc:StyleList/wmc:Style  

Applying (from Firebug) the instruction
config.objects.mainMap.setXpathValue(config.objects.mainMap,config.objects.mainMap.nodeSelectXpath,'newSLDvalue');
 

it just returns "true". Shoud I already see the changes on the map, right?
maybe I'm missing any listener?

I've also tried a similar function you explain in the "Drawing custom points
tutorial":
function changesld ()
{
success = 
config.objects.mainMap.setXpathValue(config.objects.mainMap,config.objects.mainMap.nodeSelectXpath,'newsldvalue');
}
changesld()

Thanks a lot,
Pere Roca 
-- 
View this message in context: 
http://www.nabble.com/dynamical-change-of-Style-in-WMC-tp14361232p14361232.html
Sent from the MapBuilder Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to