最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - why is google map iframe not working and showing the location? - Stack Overflow

programmeradmin1浏览0评论

this google map iframe doesn't show the
location. why?

<iframe src="'14.7%22N+98%C2%B059'44.0%22E/@18.7540995,98.9933669,17z/data=!3m1!4b1!4m5!3m4!1s0x0:0x0!8m2!3d18.7540944!4d98.9955556&hl=es;z=14&output=embed" frameborder="0" class="frame-p" allowfullscreen></iframe>

this google map iframe doesn't show the
location. why?

<iframe src="https://www.google./maps/place/18%C2%B045'14.7%22N+98%C2%B059'44.0%22E/@18.7540995,98.9933669,17z/data=!3m1!4b1!4m5!3m4!1s0x0:0x0!8m2!3d18.7540944!4d98.9955556&hl=es;z=14&output=embed" frameborder="0" class="frame-p" allowfullscreen></iframe>
Share Improve this question edited Jul 26, 2016 at 13:19 Enamul Hassan 5,44523 gold badges43 silver badges58 bronze badges asked Jul 24, 2016 at 7:40 inazinaz 1,7835 gold badges22 silver badges43 bronze badges 2
  • Wele to Stack Overflow! I edited your question as far as I could guess your problem. However, add code and description so that more people with knowledge of the subject will see it. Please edit in the specific error-message you're encountering in case that's necessary to identify the specific problem. Good Luck! – Enamul Hassan Commented Jul 26, 2016 at 13:19
  • I had same issue with react. check this out : stackoverflow./a/72043797/10315704 – Marzieh Mousavi Commented Apr 28, 2022 at 12:57
Add a ment  | 

2 Answers 2

Reset to default 2

Google maps requires an API key to for embeded maps to be displayed.

<iframe>
  width="600"
  height="450"
  frameborder="0" style="border:0"
  src="https://www.google./maps/embed/v1/place?key=YOUR_API_KEY
    &q=Space+Needle,Seattle+WA" allowfullscreen>
</iframe>

https://developers.google./maps/documentation/embed/guide

You could also use a generator to create one and copy it.

https://jsfiddle/q10s7ysv/

I tried to see the location of his maps and map out. there may be an error when you copy the iframe his

<iframe src="https://www.google./maps/embed?pb=!1m14!1m8!1m3!1d3777.987407558813!2d98.9933669!3d18.7540995!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x0!2zMTjCsDQ1JzE0LjciTiA5OMKwNTknNDQuMCJF!5e0!3m2!1sid!2s!4v1469346687955" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

demo : https://jsfiddle/yz4r8jzc/

发布评论

评论列表(0)

  1. 暂无评论