diff --git a/index.js b/index.js index f05306a..37deb24 100644 --- a/index.js +++ b/index.js @@ -104,7 +104,7 @@ function writeProperties (context, pbf) { var value = feature.properties[key] var type = typeof value - if (type !== 'string' && type !== 'boolean' && type !== 'number') { + if (value !== null && type !== 'string' && type !== 'boolean' && type !== 'number') { value = JSON.stringify(value) } var valueKey = type + ':' + value