[OpenLayers-Users] SLD style with openLayers

Arnd Wippermann arnd.wippermann at web.de
Fri Nov 29 10:31:07 PST 2013


the layer name have to be "COM"
var gJsonLayer = new OpenLayers.Layer.Vector("COM", ...
 
as here
obj.namedLayers["COM"]
Then you should get a red filled polygon.
 
Arnd
 

  _____  

Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Fabien
Maison
Gesendet: Freitag, 29. November 2013 15:42
An: Diego Guidi; openlayers-users
Betreff: Re: [OpenLayers-Users] SLD style with openLayers


Yes Diego, 

So i have make some basic example at
http://technique-maison.com/basic_sld_vector/app/ .

I try to make it basic for more readability.

Hop someon can help me !

Thank's


Fabien




Le 29 nov. 2013 à 10:52, Diego Guidi a écrit :


you should add more information and maybe an online demo version.
it's hard to say what's wrong with your data without actually see anything.

Diego Guidi


On Fri, Nov 29, 2013 at 10:37 AM, Fabien Maison <fabien at fmaison.com> wrote:


Hi all !



I would like to use some sld style  with Openlayers and Vector Layers. I


have seen the OL example (http://openlayers.org/dev/examples/sld.html)  but


if i replicate this i only get a black styler vector object... Any on know


what's the pbm ?


Can we use sld with OL 2.13.1 ?



_______________________________________________


Users mailing list


Users at lists.osgeo.org


http://lists.osgeo.org/mailman/listinfo/openlayers-users




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131129/b47de047/attachment.html>


More information about the Users mailing list