Closed ismail44 closed 8 years ago
Ok, so looking at AbstractMultiPolyline.js
, how come, inside of the parse function, layer is set to new L.Polyline([])
and not new L.MultiPolyline([])
?
Hi, are you use right branch? Master branch is for leaflet 1.x. For leaflet 0.7.x you should use code from leaflet-0.7.3 branch
It looks like 1.x is still beta and their website says 0.7.7 is the "good version"
On Mar 2, 2016, at 1:24 AM, kuzkok notifications@github.com wrote:
Hi, are you use right branch? Master branch is for leaflet 1.x. For leaflet 0.7.x you should use code from leaflet-0.7.3 branch
— Reply to this email directly or view it on GitHub.
Ok, so looking at AbstractMultiPolyline.js, how come, inside of the parse function, layer is set to new L.Polyline([]) and not new L.MultiPolyline([])
this changes were made for leaflet beta1 compatibility, if you see to leaflet-0.7.3 branch there will be L.MultiPolyline([])
Ok... so, I guess the answer is to swtich to 1.0. I'm a bit uncomfortable switching to "beta", but it seems to be the only way.
Thanks.
On Wed, Mar 2, 2016 at 8:31 AM, kuzkok notifications@github.com wrote:
Ok, so looking at AbstractMultiPolyline.js, how come, inside of the parse function, layer is set to new L.Polyline([]) and not new L.MultiPolyline([])
this changes were made for leaflet beta1 compatibility, if you see to leaflet-0.7.3 branch https://github.com/Flexberry/Leaflet-WFST/blob/leaflet-0.7.3/src/Format/Parsers/Layers/AbstractMultiPolyline.js there will be L.MultiPolyline([])
— Reply to this email directly or view it on GitHub https://github.com/Flexberry/Leaflet-WFST/issues/29#issuecomment-191239097 .
You can use leaflet 0.7.7 and this plugin code from leaflet-0.7.3 branch, it support all leaflet 0.7.x versions. Its just a branch name, not fixed leaflet version.
Ahhh... I see. Thanks so much!
On Wed, Mar 2, 2016 at 9:03 AM, kuzkok notifications@github.com wrote:
You can use leaflet 0.7.7 and this plugin code from leaflet-0.7.3 branch, it support all leaflet 0.7.x versions. Its just a branch name not fixed leaflet version.
— Reply to this email directly or view it on GitHub https://github.com/Flexberry/Leaflet-WFST/issues/29#issuecomment-191248978 .
I thought you were talking about the Leaflet project's version... no this project's version.
Thanks again for all your help. Selecting the correct version of WFST works just as expected.
I am using leaflet 0.7.7.
I am grabbing the layer osm:ne_110m_admin_0_boundary_lines_land from http://demo.opengeo.org/geoserver/wfs:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" maxFeatures="2" outputFormat="text/xml; subtype=gml/3.1.1"><wfs:Query typeName="osm:ne_110m_admin_0_boundary_lines_land" srsName="EPSG:4326"/></wfs:GetFeature>
The type that's coming back for each FeatureMember is a MultiLineString. For some reason, Leaflet isn't drawing the layer(s) because it cannot parse the list of LatLngs from the XML being returned. From what I can see this the element that contains the coords:
`