dsxi70423 2014-03-10 11:39
浏览 54
已采纳

Google地图无法使用IFRAME

I need to generate map from address (string)

the string itself:

1072 Budapest Rákóczi út 12.

this is how I put it to the site:

<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.hu/maps?q={$infos.address|escape:'url'}"></iframe>

and this is the final output:

<iframe scrolling="no" frameborder="0" src="https://maps.google.hu/maps?q=1072%20Budapest%20R%C3%A1k%C3%B3czi%20%C3%BAt%2012." marginwidth="0" marginheight="0"></iframe>

and that is empty

  • 写回答

1条回答 默认 最新

  • drvxnivoqf17568697 2014-03-10 12:14
    关注

    Add the parameter output=embed to the URL.

    This parameter will force google to send an appropriate X-Frame-Options-header

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作