Can't enable Jsonp in Geoserver 2.7.0 and then publishing my WFS request in Leaflet

المشرف العام

Administrator
طاقم الإدارة
I'm working on localhost:8080 and want to get WFS data in a Leaflet map.So, I've read in some posts here that I first I have to enable Jsonp in my web.xml file in Geoserver.So I put

ENABLE_JSONPtrueBut I can't see that Jsonp is allowed with a getCapabilities :

text/xml; subtype=gml/3.2GML2KMLSHAPE-ZIPapplication/gml+xml; version=3.2application/jsonapplication/vnd.google-earth.kml xmlapplication/vnd.google-earth.kml+xmlapplication/x-gpkgcsvgeopackagegeopkggml3gml32gpkgjsontext/xml; subtype=gml/2.1.2text/xml; subtype=gml/3.1.1Then, I tried to load my WFS data into a GeoJson layer in leaflet with this code :

Test WFS
And firefox's console return

SyntaxError: missing ; before statement ows:1:7Is someone knows why it doesn't work ?



أكثر...
 
أعلى