kekscom / osmbuildings

OSM Buildings Classic 2.5D
http://osmbuildings.org
BSD 2-Clause "Simplified" License
505 stars 140 forks source link

Update GeoJSON.js #73

Closed MarkCupitt closed 9 years ago

MarkCupitt commented 9 years ago

geojson.features can become undefined because of the way that Postgresql builds it json strings in the query. This change prevents an error by simply ignoring the collection if it is undefined.

kekscom commented 9 years ago

I see the point, but rather prefer whole request returns Status 204 then.

MarkCupitt commented 9 years ago

This will make it impossible to use the Postgres. as a back end.