以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  如何获得手机的座标  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=119959)

--  作者:lihe60
--  发布时间:2018/6/4 20:33:00
--  如何获得手机的座标
如题
--  作者:有点蓝
--  发布时间:2018/6/4 20:49:00
--  
利用微信,或者百度api等等

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=101759&skin=0

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=23&ID=117457&replyID=793868&skin=1

--  作者:lihe60
--  发布时间:2018/6/4 21:44:00
--  
下面这个代码如何转换成foxtable可以执行的语句?

map.getUserLocation(function(state, pos) {
    console.log(JSON.stringify(pos));
    if(0 == state) {
        map.centerAndZoom(pos, 16);
        plus.maps.Map.reverseGeocode(pos, {}, function(event) {
            var address = event.address; // 转换后的地理位置
		var point = event.coord; // 转换后的坐标信息
		var coordType = event.coordType; // 转换后的坐标系类型
            alert("Address:" + address);
            console.log(JSON.stringify(point));
            console.log(coordType);
        }, function(e) {
            alert("Failed:" + JSON.stringify(e));
        });
    }
});

--  作者:有点蓝
--  发布时间:2018/6/4 21:49:00
--  
js的调用参考:http://www.foxtable.com/mobilehelp/scr/0016.htm