Security notice : We have become aware of a security issue that may be affecting websites using specific third-party libraries (including polyfill.io). This issue can sometimes redirect visitors away from the intended website without website owner knowledge or permission. Many of our JavaScript samples previously included a polyfill.io
script declaration. We have removed this from our samples. If you have used our JavaScript samples that contain this declaration, we recommend removing the declaration.
ส่งความคิดเห็น
Settings (beta)
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
google.maps .Settings
ชั้นเรียน
การตั้งค่าที่ควบคุมลักษณะการทำงานของ Maps JavaScript API โดยรวม
เข้าถึงโดยโทรไปที่ const {Settings} = await google.maps.importLibrary("core")
ดูไลบรารีใน Maps JavaScript API
วิธีการแบบคงที่
getInstance
getInstance()
พารามิเตอร์: ไม่มี
แสดงผลอินสแตนซ์ Singleton ของ google.maps.Settings
พร็อพเพอร์ตี้
experienceIds
คอลเล็กชันของรหัสประสบการณ์ที่ไม่ซ้ำกันซึ่งใช้เป็นแหล่งที่มาของการเรียก Maps JS API ค่าที่ส่งกลับคือสำเนาของค่าภายในที่จัดเก็บไว้ในอินสแตนซ์ Singleton ของคลาส Settings
ดังนั้น การดำเนินการใน google.maps.Settings.getInstance().experienceIds
จะแก้ไขเฉพาะสำเนาเท่านั้น ไม่ใช่ค่าภายใน หากต้องการอัปเดตค่าภายใน ให้ตั้งค่าพร็อพเพอร์ตี้ให้เท่ากับค่าใหม่ในอินสแตนซ์ Singleton (เช่น google.maps.Settings.getInstance().experienceIds = [experienceId];
)
ส่งความคิดเห็น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-06-26 UTC
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]
หากต้องการบอกให้เราทราบเพิ่มเติม