<div dir="ltr">Hi ,<br><br>i would like to display a gml v3 layer from a gml file with openlayers. so whene i use this code whith the simple GML format.like this :<br><br>var gmllayer= new OpenLayers.Layer.GML("amine","gml/services.xml",{<br>
<br> projection: new OpenLayers.Projection("EPSG:4326"),<br> <br> format: OpenLayers.Format.GML,<br> formatOptions: {<br> <br> extractAttributes: true<br> },<br>
styleMap: new OpenLayers.StyleMap({<br> "default": new OpenLayers.Style(OpenLayers.Util.applyDefaults({<br> <br> externalGraphic: "am.png",<br>
graphicOpacity: 1,<br> rotation: 45,<br> pointRadius: 7<br> }, OpenLayers.Feature.Vector.style["default"])),<br> "select": new OpenLayers.Style(OpenLayers.Util.applyDefaults({<br>
<br> externalGraphic: "../img/marker-blue.png",<br> <br> fillColor: "gray"<br> }, OpenLayers.Feature.Vector.style["select"]))<br>
})<br> }); <br><br>the result in the map is like a <span id="result_box" class="short_text"><span style="" title="">disperse polygones, because the real gml format in my file is multisurface and surface (new format for gml V3).<br>
<br>and whene i specifie the format </span></span>format: OpenLayers.Format.GML.V3 like this, i got nothing <span> without success</span> ,<br><br>var fir= new OpenLayers.Layer.GML("amine","gml/services.xml",{<br>
<br> projection: new OpenLayers.Projection("EPSG:4326"),<br> format: OpenLayers.Format.GML.v3,<br> <br> <br> <br> formatOptions : {<br> surface: true,<br> featureType: "fir",<br>
featureNS:"xmlns(app=<a href="http://www.deegree.org/app">http://www.deegree.org/app</a>)",<br> geometryName: "geom",<br> srsName: "EPSG:4326",<br> schemaLocation: "<a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>"<br>
}<br> });<br><br>please if someone knows how to display a gml V3 layers with openlayers ,i 'm using deegree server and gml v3 is a response for deegree WFS v 1.1.0.<br><br>thanks to reply.<br></div>