|
发表帖子
API/SDK版本号: |
选址组件 |
产品: |
定位 |
手机型号: |
|
使用接口: |
|
有谁知道选址组件如何使用,
他的这个方法如何使用,地图显示出来了,但是我想获取位置的经纬度和地址
(function() {
var iframe = document.getElementById('test').contentWindow;
setTimeout(function() {
iframe.postMessage('hello', 'http://m.amap.com/picker/');
}, 500)
window.addEventListener("message", function(e) {
console.log(e.data)
}, false);
}())
|
|