Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

i have a wfs point layer and call it with openlayers. its default css is


fill:#ee9900;
fill-opacity: 0.4;
stroke: #ee9900;
stroke-opacity: 1;
stroke-width: 1px;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: none;
pointer-events: visiblepainted;
cursor: inherit;

and i want to change it and write some code but i cant achive, my code is below, pls correct me


    var xxx= new OpenLayers.Layer.Vector("xxx", {
        protocol: new OpenLayers.Protocol.WFS({
            url: "http://localhost:8080/geoserver/wfs",
            featureType: "xxx",
            geometryName: "geom",
            featureNS: "http://localhost:8080/SBB",
            styleMap: new OpenLayers.StyleMap({
            'default': new OpenLayers.Style({
                strokeOpacity: 0.5,
                strokeColor: "#88aaaa",
                fillColor: "#99CC55",
                fillOpacity: 0.5,
                fontColor: "#ffffff"
            })
        })
        }),
        strategies: [new OpenLayers.Strategy.BBOX()]
    });

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.