お知らせ: Google Maps Platform に間もなく新しい基本地図のスタイルが導入されます。このアップデートでは、デフォルトのカラーパレットが新しくなり、ピンが最新になったほか、地図のエクスペリエンスとユーザビリティも改善されています。すべての地図のスタイルは、2025 年 3 月に自動的に更新されます。ご利用の詳細およびいち早く使用する方法については、
Google Maps Platform の新しい地図のスタイルをご覧ください。
3D モデル

Maps JavaScript API の Photorealistic 3D Maps を利用すると、glTF 形式の 3D モデルを 3D 地図に直接表示できます。こうしたリアルな 3D オブジェクトを利用して、建物やランドマーク、その他のカスタム オブジェクトを表示し、地図の視覚的な訴求力と機能性を高めることができます。
このモデルは、glTF PBR の主要プロパティに対応させる必要があります。拡張機能や拡張プロパティは利用できません。
モデルを地図に追加する
モデルを地図に追加するには、以下のように gmp-model-3d
要素を使用します。altitude-mode
属性を省略すると、モデルはデフォルトでは地面に固定されます。
<gmp-model-3d position="lat,lng,altitude" altitude-mode="string" orientation="heading,tilt,roll" scale="x,y,z|number" src="string"></gmp-model-3d>
次のステップ
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-22 UTC。
[null,null,["最終更新日 2024-12-22 UTC。"],[[["Photorealistic 3D Maps in Maps JavaScript API allows rendering GLTF 3D models directly into 3D maps to represent buildings, landmarks, or other custom objects."],["The 3D models should support core properties of the glTF PBR, without any extensions or extension properties."],["You can add a model to the map using the `\u003cgmp-model-3d\u003e` element by specifying its position, altitude mode, orientation, scale, and source URL."],["This product or feature is currently experimental and might have limited support."]]],[]]