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
4101815a
authored
2018-09-02 18:43:40 +0800
by
unknown
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提示运行环境
1 parent
86046fad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
js/JSBridge.js
js/controller/mapController.js
js/JSBridge.js
View file @
4101815
...
...
@@ -15,6 +15,7 @@ function isJson(str) {
return
true
;
}
// var str = '{latitude:30.2741500000,longitude:120.1551500000}'
// console.log(toJson(str))
function
toJson
(
str
)
{
try
{
if
(
str
.
length
>
2
){
...
...
js/controller/mapController.js
View file @
4101815
...
...
@@ -303,9 +303,10 @@ angular.module('myApp')
},
1000
)
}
else
{
appClient
.
getGPS
(
''
,
function
(
data
,
cb
)
{
var
obj
=
toJson
(
data
)
layer
.
open
({
content
:
obj
,
content
:
obj
.
latitude
,
time
:
2
})
onSuccess
(
obj
)
...
...
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