dear Cameron and Andreas,
yes, really SLD editing is very desiderable; in fact, the one in previous
versions worked fine, but disappeared in the demo because of openlayers? (it
also can use WMC and in SLD Editor you just injected SLDs in WMC). Well,
it's about one year I started the project I'm working with, and mapBuilder
has been very helpful. Maybe it's time to give back something ;.) althought
I'm not really good in javascript (in fact I use a very useful (for me)
javascript library: jquery). I expect to explain also all has been done in
the EDIT project (http://edit.csic.es/edit_geo/prototype/edit.html) till now
in a PDF .
Because I want to get a legend (using Geoserver) and because of SLD-Body
length limitations, I need to manipulate SLD directly (I have serious doubts
in performance issues working with GML or WFS if someone inserts and
visualize about 100000 point records, so I prefer WMS and SLD).
The points layer in my WMC has the style:
<StyleList>
<Style current="1">
<SLD>
<OnlineResource xlink:href="http://localhost/generos2.sld"/>
</SLD>
</Style>
</StyleList>
As I told in my last message, if I make changes to mySLD and apply in
Firebug:
console.dirxml(config.objects.mySLD.doc) I can see how the values in mySLD
model
(generos2.sld) change, but it's not reflected in the mainMap (even if i use
a
config.objects.mainMap.setParam("refresh") or, as Andreas pointed,
setParam("refreshWmsLayers"). If I perform a config.loadModel("mySLD", "
http://localhost/generos2.sld") and console.dirxml(config.objects.mySLD.doc)
I can see the old SLD file, without modifications.
So, what makes the difference between changing WMC.xml (and refreshing)
and changing a SLD (it's just another XML file!!). It should work, isn't it?
I've tried all kind of refreshings without success.
thanks again,
Pere
2008/3/25, Andreas Hocevar <[EMAIL PROTECTED]>:
>
> Pere,
>
>
> On Tue, Mar 25, 2008 at 9:00 PM, Cameron Shorter
> <[EMAIL PROTECTED]> wrote:
> > You also might find it better to render your points as vectors (using a
> > GML or WFS layer). This will probably require you to rewrite SLD
> passing
> > code, which would not be too difficult. Andreas has been doing some
> work
> > in this area and can probably give you more tips if you want to head
> > down this path.
>
>
> No need to rewrite anything if you use the current trunk version of
> Mapbuilder. SLD embedded into your OWS context on a FeatureType will
> work like for WMS layers, but with some limitations (no labels, only
> one symbolizer per feature).
>
>
> > > 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");
> > >
> > Maybe the MapPaneOL is not receiving the "refresh" event. Try
> > setParam("loadModel") and see if that works.
>
>
> That's not the reason. WMS layers need to be reloaded using
> setParam("refreshWmsLayers").
>
> Regards,
>
> Andreas.
>
-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel