ui.Map.CloudStorageLayer
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เลเยอร์ที่สร้างจากไทล์ Cloud Storage เพื่อแสดงใน ui.Map
การใช้งาน | การคืนสินค้า |
---|
ui.Map.CloudStorageLayer(bucket, path, maxZoom, suffix, name, shown, opacity) | ui.Map.CloudStorageLayer |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
bucket | สตริง | ที่เก็บข้อมูลที่มีไทล์ |
path | สตริง | เส้นทางไปยังไทล์ของเลเยอร์นี้ที่สัมพันธ์กับที่เก็บข้อมูล คุณจะใส่ "/" ต่อท้ายหรือไม่ก็ได้ |
maxZoom | ตัวเลข | ระดับการซูมสูงสุดที่มีไทล์ |
suffix | สตริง ไม่บังคับ | คำต่อท้ายของไฟล์แหล่งที่มาของไทล์ (หากมี) |
name | สตริง ไม่บังคับ | ชื่อเลเยอร์ |
shown | บูลีน ไม่บังคับ | กำหนดว่าจะให้เลเยอร์แสดงในตอนแรกหรือไม่ ค่าเริ่มต้นคือ True |
opacity | หมายเลข (ไม่บังคับ) | ความทึบแสงของเลเยอร์แสดงเป็นตัวเลขระหว่าง 0 ถึง 1 ค่าเริ่มต้นคือ 1 |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCreates a map layer from Cloud Storage tiles for display on a ui.Map.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a bucket and path to locate tiles, specifying maximum zoom level.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of file suffix, layer name, visibility, and opacity.\u003c/p\u003e\n"]]],[],null,["# ui.Map.CloudStorageLayer\n\n\u003cbr /\u003e\n\nA layer generated from Cloud Storage tiles for display on a ui.Map.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------|--------------------------|\n| `ui.Map.CloudStorageLayer(bucket, path, maxZoom, `*suffix* `, `*name* `, `*shown* `, `*opacity*`)` | ui.Map.CloudStorageLayer |\n\n| Argument | Type | Details |\n|-----------|-------------------|-------------------------------------------------------------------------------------|\n| `bucket` | String | The bucket that contains the tiles. |\n| `path` | String | The path to this layer's tiles, relative to the bucket. A trailing \"/\" is optional. |\n| `maxZoom` | Number | The maximum zoom level for which there are tiles. |\n| `suffix` | String, optional | The tile source file suffix, if any. |\n| `name` | String, optional | The name of the layer. |\n| `shown` | Boolean, optional | Whether the layer is initially shown. Defaults to true. |\n| `opacity` | Number, optional | The layer's opacity represented as a number between 0 and 1. Defaults to 1. |"]]