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
3e50cdc4
authored
2018-09-02 22:18:43 +0800
by
unknown
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
获取地理位置
1 parent
39cbf048
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
js/controller/mapController.js
js/controller/mapController.js
View file @
3e50cdc
...
...
@@ -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
...
...
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