Google 地圖平台即將推出新版地圖樣式。新版地圖樣式內建全新的預設調色盤,並且提升地圖體驗、改善服務的可用性。所有地圖樣式都將於 2025 年 3 月自動更新。請參閱「
Google 地圖平台新版地圖樣式」一文,進一步瞭解適用範圍及如何提早啟用。
Max Zoom
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
google.maps.MaxZoomService
類別
在指定位置提供衛星圖像的情況下,取得最高縮放等級的服務。
呼叫 const {MaxZoomService} = await google.maps.importLibrary("maps")
即可存取。請參閱 Maps JavaScript API 中的程式庫。
建構函式 |
MaxZoomService |
MaxZoomService()
參數:無
建立 MaxZoomService 的新執行個體,以便能夠傳送衛星圖像最大縮放等級的相關查詢。 |
方法 |
getMaxZoomAtLatLng |
getMaxZoomAtLatLng(latlng[, callback])
傳回 satellite 地圖類型的特定 LatLng 可提供詳細圖像的最大縮放等級。由於此要求為非同步要求,您必須傳遞在完成要求後執行的 callback 函式,也就是傳遞 MaxZoomResult 。 |
google.maps.MaxZoomResult
介面
使用 JSON 格式 (擷取自 MaxZoomService) 的 MaxZoom 結果。
屬性 |
zoom |
類型: number
指定 LatLng 處的最大縮放等級。 |
status optional |
|
google.maps.MaxZoomStatus
常數
呼叫 getMaxZoomAtLatLng()
完成後,由 MaxZoomService
傳回的狀態。您可以採用值或常數名稱來指定這些參數。例如 'OK'
或 google.maps.MaxZoomStatus.OK
。
呼叫 const {MaxZoomStatus} = await google.maps.importLibrary("maps")
即可存取。請參閱 Maps JavaScript API 中的程式庫。
常數 |
ERROR |
發生不明錯誤。 |
OK |
回應包含有效的 MaxZoomResult 。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-06-26 (世界標準時間)。
[{
"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":"其他"
}]
{"lastModified": "\u4e0a\u6b21\u66f4\u65b0\u6642\u9593\uff1a2024-06-26 (\u4e16\u754c\u6a19\u6e96\u6642\u9593)\u3002"}
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-06-26 (世界標準時間)。"]]