Google Maps API showing blank map

前端 未结 7 536
再見小時候
再見小時候 2021-01-17 14:41

I\'m sure this is a basic problem but I\'ve hit my head against the wall too many times now, so hopefully someone will take pity on me!

I have the following example

7条回答
  •  粉色の甜心
    2021-01-17 15:29

    results[0].geometry.location is already a latLng object so you can just say:

    center: results[0].geometry.location
    

    Find the working fiddle here : http://jsfiddle.net/87z9K/

提交回复
热议问题