投影
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
投影功能會用在螢幕表面的螢幕位置和地理座標 (LatLng
) 之間進行翻譯。螢幕位置是相對於地圖左上角的畫面 (不一定是整個螢幕)。
繼承方法摘要
從 java.lang.Object 類別
布林 |
等於(物件 arg0)
|
final Class<?> |
getClass()
|
整數 |
hashCode()
|
Final void
|
notify()
|
Final void
|
notifyAll()
|
字串
|
toString()
|
Final void
|
wait(long arg0, int arg1)
|
Final void
|
wait(long arg0)
|
Final void
|
wait()
|
公用方法
公開
LatLng
fromScreenLocation
(端點)
傳回與畫面位置對應的地理位置。螢幕位置是用相對於地圖左上角的 (而非整個螢幕的左上角) 的螢幕像素 (而非顯示像素) 來指定。
傳回
- 與螢幕上的
point
對應的 LatLng
;如果透過指定螢幕點的光源與地面平面交錯,則可能為 null
(如果地圖高度傾斜)。
取得螢幕視體投影,以在螢幕座標和地理緯度/經度座標之間進行轉換。
public Point
toScreenLocation
(LatLng location)
傳回與地理座標 (LatLng
) 對應的螢幕位置。螢幕位置是指與地圖左上方的 (而非整個螢幕) 左上角的畫面像素 (而非顯示像素)。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-03-16 (世界標準時間)。
[{
"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":"其他"
}]