We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90c7f1 commit 28f86a9Copy full SHA for 28f86a9
lib/lib.js
@@ -27,7 +27,7 @@ function replacefiles(str) {
27
module.exports = function(options) {
28
return new Promise(function(resolve, reject) {
29
options = options || {};
30
- options.geojson = options.geojson || '';
+ options.geojson = (options.geojson && (typeof options.geojson === 'string' ? options.geojson : JSON.stringify(options.geojson))) || '';
31
options.height = options.height || 600;
32
options.width = options.width || 800;
33
options.center = options.center || '';
0 commit comments