[OpenLayers-Users] Issue in loading WFS point data

Sameera Jayaratna sameera_jayaratna at yahoo.com
Mon Nov 18 06:52:58 PST 2013


Hi,



I'm using following method to load wfs from locally setup geoserver.

var layer = new OpenLayers.Layer.Vector("WFS   " + fName, {
                strategies: [new OpenLayers.Strategy.BBOX()],
                protocol: new OpenLayers.Protocol.WFS({
                    url: serviceUrl,
                    featureType: fName,
                    featureNS: fNS
                }), styleMap: new OpenLayers.StyleMap({
                    fillColor: this.get_random_color(),
                    strokeWidth: 0.5,
                    fillOpacity: .8
                }),

It successfully loads data of type polygon and line. But it does not work for point data. What could be the reason for this issue? Any thoughts are highly appreciated. 

Thank you,
Sameera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131118/f94d4163/attachment.html>


More information about the Users mailing list