You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My page is under http://localhost:80 and I tried to put the geojson file both under localhost:80 (apache here ...), and localhost:8080 (tomcat here .....).
The code of index,html is the same as you example, I've only changed here .....
I can't show the markers when active the jsonp layer: markers are ok activating the json layer. Using firebug I can see the json response but I note that I've
Hi Calvin!
I'm trying to use your library starting from https://github.com/calvinmetcalf/leaflet-ajax/blob/master/example/index.html and using the test.geojson on my pc.
My page is under http://localhost:80 and I tried to put the geojson file both under localhost:80 (apache here ...), and localhost:8080 (tomcat here .....).
The code of index,html is the same as you example, I've only changed here .....
var jsonTest = new L.GeoJSON.AJAX("test.geojson",{onEachFeature:popUp});
var jsonpTest = L.geoJson.ajax("http://localhost:8080/test.geojson",{onEachFeature:popUp,dataType:"jsonp"});
so you can replicate if you want.
I can't show the markers when active the jsonp layer: markers are ok activating the json layer. Using firebug I can see the json response but I note that I've
invalid label
{"type": "FeatureCollection", "features": [{"geometry": {"type": "Point", "coord...
referring ti the http://localhost:8080/test.geojson,
Any suggestion? Thank you very much in advance
Cesare
The text was updated successfully, but these errors were encountered: