Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid geojson syntax (when used with leaflet-tilelayer-geojson) #2

Open
missbala opened this issue Jul 25, 2013 · 0 comments
Open

Comments

@missbala
Copy link

Hey!

Playing around with a simple test app with leaflet-tilelayer-geojson occasionally some invalid geojson is returned.

E.g.
"{"crs": {"type": "link", "properties": {"href": "http://spatialreference.org/ref/epsg/4326/", "type": "proj4"}}, "type": "FeatureCollection", "features": [], "bbox": [[11.249999999999993, 40.97989806962015], [22.499999999999986, 40.97989806962015], [22.499999999999986, 48.922499263758255], [11.249999999999993, 48.922499263758255]]}{"crs": {"type": "link", "properties": {"href": "http://spatialreference.org/ref/epsg/4326/", "type": "proj4"}}, "type": "FeatureCollection", "features": [], "bbox": [[11.249999999999993, 40.97989806962015], [22.499999999999986, 40.97989806962015], [22.499999999999986, 48.922499263758255], [11.249999999999993, 48.922499263758255]]}"

I think a proper response should only return one record, i.e.
"{"crs": {"type": "link", "properties": {"href": "http://spatialreference.org/ref/epsg/4326/", "type": "proj4"}}, "type": "FeatureCollection", "features": [], "bbox": [[11.249999999999993, 40.97989806962015], [22.499999999999986, 40.97989806962015], [22.499999999999986, 48.922499263758255], [11.249999999999993, 48.922499263758255]]}"

I suspect, that somehow different json queries are concatenated, but
I really have no glue, how to analyse deeper as I'm pretty new to django..
Any hint is appreciated..

Cheers
Toby

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant