→ issuemylove: 印象中v3可以 但我只有用過v2 11/10 10:51
小弟load 了map.html進 webview
我點擊地圖後標記記號, 這部分沒問題
但是我想要這個標記點的座標傳回來給裝置作處理
v2 似乎可以作以下操作
Get Projection of the map:
Projection projection = map.getProjection();
Get location of your marker:
LatLng markerLocation = marker.getPosition();
Pass location to the Projection.toScreenLocation() method:
Point screenPosition = projection.toScreenLocation(markerLocation);
That's all. Now screenPosition will contain the position of the marker
relative to the top-left corner of the whole Map container :)
但是v3版的 webViewb容器似乎沒有getProjection().....
我該怎麼做?
1.是否可以從map.html傳值給webView ?
2.webView 是否也可以抓取到google map的map座標?
感謝回答
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.250.144.223
※ 文章網址: http://www.ptt.cc/bbs/AndroidDev/M.1415360309.A.31B.html