Google Maps Embed API Panorama ID [英] Google Maps Embed API Panorama ID
本文介绍了Google Maps Embed API Panorama ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以前的Photosphere全景图实现的URL包含全景图ID,因此可以轻松地将特定的全景图嵌入到iframe中.我似乎无法在新版Google地图中找到ID.是否有任何方法无需使用Javascript即可识别光球的ID?
The URL for previous implementations of photosphere panoramas contained the pano ID, making it easy to embed a specific panorama in an iframe. I can't seem to track down ID in the new Google Maps. Is there any method of identifying the ID for a photosphere without resorting to Javascript?
推荐答案
从开发人员工具的控制台中运行以下命令,同时查看Google Maps上的全景图
Run the following from the console of developer tools while viewing the pano on Google Maps
"F:".concat(window.location.href.split("!1s")[1].split("!2e")[0]).replace('%2F','/')
这篇关于Google Maps Embed API Panorama ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文