С 1.0 тоже не работает. Тестировался он на ответах с геосервера, так что возможно некоторые пункты стандарта не учтены.
Можно всё-таки попробовать поменять значения namespace и поменять в L.GML.FeatureType.parse строку
feature.attributes['gml:id'].value на feature.attributes['fid'].value
ЗЫ: что-то я не смог добиться от сервера nextgis ответа для версии 1.0
Код: Выделить всё
<wfs:GetFeature
xmlns:wfs="http://www.opengis.net/wfs"
service="WFS"
outputFormat="text/xml; subtype=gml/3.1.1"
version="1.0.0">
<wfs:Query typeName="fs:kvly" srsName="EPSG:3857"/>
</wfs:GetFeature>
Код: Выделить всё
<wfs:FeatureCollection
timeStamp="2016-09-20T12:08:46.216526"
numberMatched="unknown"
numberReturned="10"
xmlns:fs="http://featureserver.org/fs"
xmlns:wfs="http://www.opengis.net/wfs/2.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs/2.0
http://schemas.opengis.net/wfs/2.0.0/wfs.xsd
http://www.opengis.net/gml/3.2
http://schemas.opengis.net/gml/3.2.1/gml.xsd">
<gml:featureMember gml:id="1">
<fs:kvly fid="1">
ответ от геосервера на подобный запрос
Код: Выделить всё
<wfs:FeatureCollection
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:nasa="http://nasa.gov"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:maps="http://boundlessgeo.com"
xmlns:topp="http://www.openplans.org/topp"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ows="http://www.opengis.net/ows"
xmlns:gml="http://www.opengis.net/gml"
или сервер nextgis всегда кодирует ответ в gml 3.2?