Within a single WMS request, labels always get rendered on top of everything else, regardless of layer order. I am not aware of a way to disable this behavior. You could work around it by configuring separate layers in your OpenLayers client, or using a cascading WMS server to overlay the two tilesets, or something along those lines.
Hope this helps. -- David Winslow OpenGeo - http://opengeo.org/ On Thursday, September 16, 2010, Mats Norén <[email protected]> wrote: > Hi, > I'm trying to style OSM and a layer with my own external graphics > shields in SVG on top. > > <StyledLayerDescriptor version="1.0.0" > xmlns="http://www.opengis.net/sld" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > <NamedLayer> > <Name>test</Name> > <UserStyle> > <Name>Default Point</Name> > <FeatureTypeStyle> > <Rule> > <Title>a logo</Title> > <PointSymbolizer> > <Graphic> > <ExternalGraphic> > <OnlineResource > xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" > xlink:href="a.svg"/> > <Format>image/svg+xml</Format> > </ExternalGraphic> > <Size>24</Size> > </Graphic> > </PointSymbolizer> > </Rule> > </FeatureTypeStyle> > <FeatureTypeStyle> > <Rule> > <Title>b logo</Title> > <ogc:Filter> > <ogc:PropertyIsEqualTo> > <ogc:PropertyName>type</ogc:PropertyName> > <ogc:Literal>b</ogc:Literal> > </ogc:PropertyIsEqualTo> > </ogc:Filter> > <PointSymbolizer> > <Graphic> > <ExternalGraphic> > <OnlineResource > xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" > xlink:href="b.svg"/> > <Format>image/svg+xml</Format> > </ExternalGraphic> > <Size>24</Size> > </Graphic> > </PointSymbolizer> > </Rule> > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > </StyledLayerDescriptor> > > > http://localhost:8080/geoserver/wms?BGCOLOR=0xBCCFD0&BBOX=559062.8397976003,6564244.698054293,678538.610433651,6683720.468690345&SERVICE=WMS&HEIGHT=150&REQUEST=GetMap&STYLES=&WIDTH=150&CQL_FILTER=include;include;include;include;hashcode=-1362386281&EXCEPTIONS=application/vnd.ogc.se_inimage&VERSION=1.1.1&FORMAT=image/tiff&format_options=dpi:150&LAYERS=osm:coastline_wgs84,osm:osm_polygon,osm:osm_line,osm:osm_point,test:test&SRS=EPSG:3006 > > The layer order is: > osm:coastline_wgs84 > osm:osm_polygon > osm:osm_line > osm:osm_point > test:test > > My test:test layer with the pointsymbolizer is always overwritten by > the labels from the osm-layers. > > I've been staring at this for hours, tried with VendorOptions and > Priority but nothing works... > Any ideas? > > Regards, > Mats > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
