diff --git a/helper/geojsonify.js b/helper/geojsonify.js index ef998463..b3486a3e 100644 --- a/helper/geojsonify.js +++ b/helper/geojsonify.js @@ -27,7 +27,7 @@ function search( docs, params ){ var geodata = docs.map( function( doc ) { // something went very wrong - if( !doc || !doc.center_point ) { + if( !doc || !doc.hasOwnProperty( 'center_point' ) ) { return warning(); }