Google static map API getting 403 forbidden when loading from img tag

后端 未结 11 887
执念已碎
执念已碎 2021-01-03 21:15

What I have is a Google map that shows the location of a property but when I come to print the dynamic maps dont print so good so I decided to implement the Google Static Ma

11条回答
  •  天涯浪人
    2021-01-03 21:27

    Try enabling billing on this Google Cloud Project/Firebase Project.

    I was experiencing this same issue and just received the 403 error in the console. Copying and pasting the Static Maps URL in to the URL bar and loading it showed the following error message:

    The Google Maps Platform server rejected your request. You must enable Billing on the Google Cloud Project at 
    https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started
    

    Hope this helps!

提交回复
热议问题