hi everybody,

  I'm using mapbuilder Version: 1.5-alpha1 over Tomcat 5.5.

  Sorry if this is a too long question here is a shortcut: 

  1- it's possible to manipulate and visualize SLDs (not in WebMapContext) 
without saving?
  2- I cannot save (serialize) a new SLD file with the name I want (it
generates a cmbXXXX.xml file, even if I declare, in ModelBase,  var
response=postGetLoad(config.serializeUrl,objRef.doc,"text/xml","/temp","myNAME.sld");
Do I have to directly work over XMLSerializer? (should be in
server/java/src/mapbuilder/XmlSerializer, but cannot find it!!)

  Well,here is the long mail:

  I want users to insert point data, after that a SLD is dynamically
constructed (php extract from database and applies an XSLT) and now I wanna
allow people to symbolize these points.

  Till now I've been playing with the WMC (has an static <SLD>, just for
testing), changing size, colors, etc. (you can take a look at
http://edit.csic.es/edit_geo/prototype/edit_project.html , go to Iberian
Peninsula (latlong) and click Sample Point Data->Data Symbolization; only
for Firefox 2.0 for the moment!!)
  
  I've seen in mapbuilder's SLD demo that you allways manipulate the WMC and
set a mainMap refreshing (that's also the way I've been working till now).
SLD-Body length is limited (and cannot get a legend from that), so I want to
directly manipulate the basic SLD previously created.

  So, following the SLDEditor demo, I added to config.xml 

        <StyledLayerDescriptor id="mySLD">  
                <defaultModelUrl>http://localhost/generos2.sld</defaultModelUrl>
        </StyledLayerDescriptor>

  Shortly, I change for example the Size node, as follows:

 
SizeNode=config.objects.mySLD.doc.selectSingleNode(""+xpath+"").firstChild;
  SizeNode.nodeValue="new size value";

  If I make changes to mySLD and apply in Firebug:
console.dirxml(config.objects.mySLD.doc);  I can see how the values in
generos2.sld change, but it's not reflected in the mainMap (even if i use a
config.objects.mainMap.setParam("refresh");

  So I deducted that may be I should "permanently write" this new SLD,
overwriting the "old" one (the one without the desired symbology) and
performing a refreshing. The "Create SLD file" button
(config.objects.mySLD.saveModel(config.objects.mySLD)) should be the
solution (see SLD Editor demo in mapbuilder Version: 1.5-alpha1), but after
searching and manipulating everything, I really cannot save the xml file
with the name I want. Event if I explicitly declare in saveModel function
(ModelBase.js) 

var
response=postGetLoad(config.serializeUrl,objRef.doc,"text/xml","/temp","myName.xml");

  Do I have to directly work over XMLSerializer? (should be in
server/java/src/mapbuilder/XmlSerializer, but cannot find it!! I've seen it
in this previous Nabble message
http://www.nabble.com/Where-is-%22serializeUrl%22--td15541147.html#a15567818) 
  No way to configure a so simple thing?

  Thanks in advance,

  Pere Roca
-- 
View this message in context: 
http://www.nabble.com/dynamic-SLD-manipulation-tp16286254p16286254.html
Sent from the MapBuilder Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to