[mapserver-users] styling wfs in openlayers 2.7?
John Smith
jayzee.smith at gmail.com
Thu Sep 19 09:27:44 PDT 2013
(sorry for the cross-posting but never been able to subscribe to
[openlayers-users], maybe you can help)
---------- Forwarded message ----------
From: John Smith <jayzee.smith at gmail.com>
Date: Thu, Sep 19, 2013 at 11:48 AM
Subject: [OpenLayers-Users] styling wfs in 2.7?
To: openlayers-users at lists.osgeo.org
Cc: openlayers at metacarta.com
Protocol.WFS is not supported in 2.7 and this doesn't work. any help
appreciated.
// create stylemap
var my_style = new OpenLayers.StyleMap({
"default": new OpenLayers.Style({
pointRadius: "10",
fillColor: "#ffcc66",
strokeColor: "#ff9933",
strokeWidth: 2,
graphicZIndex: 1
}),
"select": new OpenLayers.Style({
fillColor: "#66ccff",
strokeColor: "#3399ff",
graphicZIndex: 2
})
});
// create layer and apply stylemap
my_layer = new OpenLayers.Layer.WFS("info",
"/cgi-bin/info?crs=crs:84",
{ styleMap: my_style },
{ typename: 'search' },
{ extractAttributes: true }
thanks, jzs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130919/6e6e183b/attachment.htm>
More information about the MapServer-users
mailing list