适用于网络平台的街景
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此页面介绍了如何使用交互式 360 度全景查看器在任意网站上嵌入 360 度全景照片,就像您在 Google 地图上的街景中看到的一样。
Maps Embed API 中的街景
借助 Google Maps Embed API,您可以在网站或博客上将街景图片显示为互动式全景照片。Google 街景提供其整个覆盖区域内指定位置的全景视图。我们还提供用户贡献的 360 度全景照片,以及街景特集。
以下是一个已嵌入交互式照片球的示例:
Maps JavaScript API 中的街景
Maps JavaScript API 中的街景服务可让您通过编程方式检索和显示街景照片球。
该服务可提供其覆盖区域内指定的公路全景 360 度视图。街景的 API 覆盖范围与 Google 地图应用的覆盖范围相同。如要获取街景当前支持的城市列表,请访问 Google 地图网站。
Street View Image API
借助 Google Street View Image API,您无需使用 JavaScript 便可将照片球的静态(非交互式)缩略图嵌入您的网页。这有助于创建多个照片球的图库。
以下是照片球的静态图像 URL 的示例:

如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis page provides instructions for embedding interactive 360-degree photo spheres on your website using Google Maps APIs.\u003c/p\u003e\n"],["\u003cp\u003eYou can use either the Google Maps Embed API or the Maps JavaScript API to display interactive Street View panoramas.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Street View Image API allows embedding static thumbnails of photo spheres without JavaScript for galleries or simpler displays.\u003c/p\u003e\n"],["\u003cp\u003ePhoto spheres can be sourced from Google Street View, user contributions, and special collections.\u003c/p\u003e\n"]]],["The content outlines three methods to embed photo spheres on websites. The Maps Embed API allows interactive Street View images, like Google Maps. The Maps JavaScript API programmatically retrieves and displays interactive 360-degree photo spheres from supported cities. The Street View Image API embeds static thumbnails of photo spheres without JavaScript, suitable for galleries. These methods use Street View data, including user-contributed spheres and special collections, offering both interactive and static options.\n"],null,["# Street View for Web Platforms\n\nThis page shows ways you can embed photo spheres on any website with an\ninteractive, 360-degree panorama viewer just like you see in Street View on\nGoogle Maps.\n\nStreet View in the Maps Embed API\n---------------------------------\n\nThe [Google Maps Embed API](/maps/documentation/embed/guide#street_view_mode)\nlets you display Street View images on your site or blog as interactive photo\nspheres. Google Street View provides panoramic views from designated locations\nthroughout its coverage area. User contributed photo spheres, and Street View\nspecial collections are also available.\n\nHere is an example of an embedded interactive photo sphere:\n\nStreet View in the Maps JavaScript API\n--------------------------------------\n\nThe [Street View Service](/maps/documentation/javascript/streetview) in the\n[Maps JavaScript API](/maps/documentation/javascript)\nallows you to programmatically retrieve and display Street View photo spheres.\n\nThe service provides panoramic 360 degree views from designated roads throughout\nits coverage area. Street View's API coverage is the same as that for the\nGoogle Maps application. The list of currently supported cities for Street View\nis available at the\n[Google Maps website](http://www.google.com/maps/about/behind-the-scenes/streetview/#where).\n\nStreet View Image API\n---------------------\n\nThe [Google Street View Image API](/maps/documentation/streetview) lets you\nembed a static (non-interactive) thumbnail of a photo sphere into your webpage\nwithout the use of JavaScript. This is helpful for creating galleries of\nmultiple photo spheres.\n\nHere is an example of a static image URL for a photo sphere:"]]