[问题] map v3 如何从webView取得点击的座标?

楼主: godsing (執著是苦)   2014-11-07 19:38:26
小弟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座标?
感谢回答
作者: issuemylove (NotLove)   2014-11-10 10:51:00
印象中v3可以 但我只有用过v2

Links booklink

Contact Us: admin [ a t ] ucptt.com