node-googlemaps icon indicating copy to clipboard operation
node-googlemaps copied to clipboard

Pass X-StaticMap-API-Warning header errors in staticMap callback

Open Kaschman opened this issue 7 years ago • 0 comments

As stipulated in Google's documentation, Static Map errors are returned in the X-StaticMap-API-Warning header: https://developers.google.com/maps/documentation/maps-static/error-messages

I expected any errors in the header to be included in the callback function below but they are not. gmAPI.staticMap(params, function(err, binaryImage) { // fetch asynchronously the binary image });

Kaschman avatar Nov 07 '18 15:11 Kaschman