3e50cdc4 by unknown

获取地理位置

1 parent 39cbf048
......@@ -305,10 +305,7 @@ angular.module('myApp')
appClient.getGPS('', function (data, cb) {
var obj = toJson(data)
layer.open({
content: obj.latitude,
time: 5
})
// layer.open({
// content: obj.latitude,
// time: 5
......@@ -379,6 +376,10 @@ angular.module('myApp')
function onSuccess(position){
var longitude = position.longitude;
var latitude = position.latitude;
layer.open({
content: JSON.stringify(position),
time: 5
})
$rootScope.currentPoint = {
longitude : longitude ,
latitude : latitude
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!