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

后端 未结 11 924
执念已碎
执念已碎 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 21:24

    Staticmaps V3 doesn't need the "Key" attribute and removing it seems to solve the source problem.

    Try with an URL like this:

    http://maps.googleapis.com/maps/api/staticmap?center=0.0000,0.0000&zoom=13&size=200x200&maptype=roadmap&markers=0.0000,0.0000&sensor=false
    

    For more information read this.

提交回复
热议问题