Invalid geojson syntax (when used with leaflet-tilelayer-geojson)
missbala opened this issue · comments
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