jperelli / osm-static-maps

Openstreetmap static maps is a nodejs lib, CLI and server open source inspired on google static map service
http://osm-static-maps.herokuapp.com/
GNU General Public License v2.0
160 stars 52 forks source link

Unknown options.type value: FeatureCollection #32

Closed brunoleomont closed 3 years ago

brunoleomont commented 3 years ago

Im using POST method and I have this error. I insert a json file with the body: { "zoom": 12, "height": 673, "width": 1067, "type": "FeatureCollection", "features":[ { "type":"Feature", "properties":{ }, "geometry":{ "type":"Point", "coordinates":[ -45.194978739803766, -22.78995147526845 ] } } ] }

brunoleomont commented 3 years ago

Then.. I solved my problem. I change "type": "FeatureCollection" to "geojson":
{ "zoom": 12, "height": 673, "width": 1067, "geojson" :[ { "type":"Feature", "properties":{ }, "geometry":{ "type":"Point", "coordinates":[ -45.194978739803766, -22.78995147526845 ] } } ] }