Hello,
I am new to Mapbuilder (currently using 1.5-rc2). By following the
included examples I've managed to get a working map with a bunch of
widgets, a couple of my own javascript buttons, and several layers. Now
I'm looking for a way to change SLD associated with a layer on the map.
Some background on what I'm trying to do: I've got a SQL database that
is serving up points in lat-long that are placed one the map. The other
layers are all polygon or raster. I'm colouring the SQL layer based on
the ID numbers of the points. I'd like to colour the SQL points
differently based on selections made on the map page.
>From looking at the list archives I've come across the dynamic SLD
manipulation thread. It looks like you can do
config.loadModel("mySLD","pathtosld"). When I try to use this in Firebug
it comes up with an error. Is there some place I can look to find
information about how to use this properly? I suspect I'm not naming
"mySLD" correctly.
There was an old thread and a couple of examples on the layers hiding
problem.:
config.objects.mainMap.getLayer('ROADL_TRANS_1M:Foundation').setAttribut
e('hidden','1')
config.objects.mainMap.setParam('refresh')
Could a similar method be used to change the SLD?
If it isn't possible I can always generate a custom context file on the
webserver and use loadModel to point to the new context.
Thanks,
Sincerely,
Richard
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users