[OpenLayers-Users] Style WFS-Layer
vGIS
valentino1s73s at gmx.net
Fri Sep 28 01:43:44 PDT 2012
Thanks Mr. van den Eijnden, changed it a little bit (order / zIndexing) and
it works great!
var *StyleObjekt *= new OpenLayers.StyleMap({
"default": new OpenLayers.Style({
fillColor: "#0000A0",
strokeColor: "#0000A0",
pointRadius: 3,
graphicZIndex: 1
}),
"select": new OpenLayers.Style({
fillColor: "#ff0000",
strokeColor: "#ff0000",
pointRadius: 3,
graphicZIndex: 2,
}),
"temporary": new OpenLayers.Style({
fillColor: "#00FF00",
strokeColor: "#00FF00",
pointRadius: 3,
graphicZIndex: 3
})
});
var wfs_point = new OpenLayers.Layer.Vector("Multi Point Feature", {
*styleMap: StyleObjekt,
rendererOptions: {zIndexing: true},*
strategies: [new OpenLayers.Strategy.BBOX(), save_point],
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0",
url: "http://localhost:8080/geoserver/wfs",
featureType: "pkt",
featureNS : "http://www.openplans.org/topp",
srsName: "EPSG:31468",
maxExtent: bounds,
geometryName: "geom",
schema:
"http://localhost:8080/geoserver/wfs/DescribeFeatureType?request=GetCapabilities&version=1.1.0&typename=topp:pkt"
})
});
Kind regards,
vGIS
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Style-WFS-Layer-tp5005123p5005136.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list