[OpenLayers-Users] Re: WFST - Property is missing

cmre realehrlich at geod.tu-darmstadt.de
Tue Dec 6 02:57:18 EST 2011


Hi,

here is my code for the wfs layer:

var baum = new OpenLayers.Layer.Vector("Baum (WFST)", {
	strategies : [ new OpenLayers.Strategy.BBOX(), saveStrategy ],
	projection : new OpenLayers.Projection("EPSG:31467"),
	protocol : new OpenLayers.Protocol.WFS(
	{
		version : "1.1.0",
		url : "http://xxx/services/wfst?",
		outputFormat : "text/xml; subtype=gml/3.1.1",
		featureType : "Baum",
		featurePrefix : "app",
		featureNS : "http://www.deegree.org/app",
		geometryName : "GEOMETRY",
		srsName : "EPSG:31467",
		schema :
"http://xxx/services/wfst?service=WFS&version=1.1.0&request=DescribeFeatureType&typename=app:Baum&namespace=xmlns(app=http://www.deegree.org/app)",
		extractAttributes : true
	}),
	styleMap : new OpenLayers.StyleMap({
		"default" : new OpenLayers.Style({
			pointRadius : 3,
			strokeWidth : 1,
			strokeColor : "#00FF00",
			fillColor : "#00FF00",
			fillOpacity : 0.6
	        }),
		"temporary" : new OpenLayers.Style({
			pointRadius : 3,
			strokeWidth : 1,
			strokeColor : "#00FFCC",
			fillColor : "#00FFCC",
			fillOpacity : 0.6
		}),
		"select" : new OpenLayers.Style({
			pointRadius : 3,
			strokeWidth : 1,
			strokeColor : "#00FFCC",
			fillColor : "#00FFCC",
			fillOpacity : 1.0
		})
	})
});
map.addLayer(baum);


Enclosed you will find the complete document:
http://osgeo-org.1803224.n2.nabble.com/file/n7065927/Copy_of_MyOpenLayers7.html
MyOpenLayers.html 

Best regards
cmre

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFST-Property-is-missing-tp7055455p7065927.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list