Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
dy-wx2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
77ef2344
authored
2018-09-08 16:24:32 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
GPS
1 parent
dcdc695d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
js/controller/mapController.js
js/controller/mapController.js
View file @
77ef234
...
...
@@ -303,6 +303,10 @@ angular.module('myApp')
},
1000
)
}
else
{
appClient
.
getGPS
(
''
,
function
(
data
,
cb
)
{
layer
.
open
({
content
:
data
,
time
:
5
})
var
latitude
=
''
var
longitude
=
''
...
...
@@ -371,28 +375,14 @@ angular.module('myApp')
function
onSuccess
(
position
){
// layer.open({
// content: JSON.stringify(position)+',longitude:'+ position.longitude+',latitude:' + position.latitude,
// time: 5
// })
var
longitude
=
position
.
longitude
;
var
latitude
=
position
.
latitude
;
// layer.open({
// content: latitude,
// time: 2
// })
// layer.open({
// content: longitude,
// time: 5
// })
$rootScope
.
currentPoint
=
{
longitude
:
longitude
,
latitude
:
latitude
}
var
convertor
=
new
BMap
.
Convertor
();
var
pointArr
=
[];
// alert(longitude, latitude);
pointArr
.
push
(
new
BMap
.
Point
(
longitude
,
latitude
));
convertor
.
translate
(
pointArr
,
3
,
5
,
function
(
data
){
var
point
=
data
.
points
[
0
];
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment