clickbar / laravel-magellan

A modern PostGIS toolbox for Laravel
MIT License
193 stars 11 forks source link

Fixed generation of invalid FeatureCollection in case of zero rows #31

Closed ahawlitschek closed 1 year ago

ahawlitschek commented 1 year ago

Previously the Builder Macro toGeojsonFeatureCollection returned {"type" : "FeatureCollection", "features" : null} if there are zero database rows.

Now it properly returns {"type" : "FeatureCollection", "features" : []}