ภาพรวมตัวอย่างโค้ด
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ที่เก็บ Maps 3D SDK สำหรับ Android บน
GitHub
มีคอลเล็กชันแอปตัวอย่างที่จะช่วยให้คุณเริ่มต้นใช้งานและสำรวจ
ความสามารถของ SDK โดยที่เก็บจะจัดระเบียบเป็น 2 โมดูล ดังนี้
Maps3DSamples/ApiDemos:
โมดูลนี้แสดงฟีเจอร์ API พื้นฐานโดยใช้ Kotlin และ Android
Views ซึ่งเป็นจุดเริ่มต้นที่ดีในการทำความเข้าใจแนวคิดหลักๆ เช่น การสร้างอินสแตนซ์ของแผนที่ การจัดการกล้อง และการเพิ่มออบเจ็กต์แผนที่ต่างๆ
Maps3DSamples/advanced:
สำหรับนักพัฒนาแอปที่ใช้ Jetpack Compose ตัวอย่างนี้จะแสดงวิธี
ผสานรวม Maps 3D SDK สำหรับ Android เข้ากับ UI แบบประกาศ โดยใช้คลาส Helper
เพื่อเชื่อมต่อสถาปัตยกรรมที่อิงตาม View ของ SDK กับ Compose ซึ่งเป็น
แนวทางที่ทันสมัยกว่าในการสร้าง UI ด้วยแผนที่ 3 มิติ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[],[],null,["# Code samples overview\n\nThe [Maps 3D SDK for Android repository on\nGitHub](https://github.com/googlemaps-samples/android-maps3d-samples)\nprovides a collection of sample apps to help you get started and explore the\ncapabilities of the SDK. The repository is organized into two modules:\n\n- [Maps3DSamples/ApiDemos](https://github.com/googlemaps-samples/android-maps3d-samples/tree/main/Maps3DSamples/ApiDemos):\n This module showcases the fundamental API features using Kotlin and Android\n Views. It's a great starting point to understand core concepts like map\n instantiation, camera manipulation, and adding various map objects.\n\n- [Maps3DSamples/advanced](https://github.com/googlemaps-samples/android-maps3d-samples/tree/main/Maps3DSamples/advanced):\n For developers using Jetpack Compose, this sample demonstrates how to\n integrate the Maps 3D SDK for Android into a declarative UI. It utilizes helper\n classes to bridge the SDK's View-based architecture with Compose, offering a\n more modern approach to building UIs with 3D maps."]]