File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,16 @@ var JGeo = {
30
30
} ,
31
31
32
32
fallback : function ( ) {
33
- console . log ( 'fallback' ) ;
33
+ // if all else fails and things go horribly wrong
34
+ // we can do something here
34
35
} ,
35
36
36
37
success_callback : function ( p ) {
37
- console . log ( p ) ;
38
38
JGeo . registerSessionLocation ( p . coords . latitude , p . coords . longitude ) ;
39
-
40
- console . log ( ) ;
41
39
} ,
42
40
43
41
error_callback : function ( p ) {
44
- console . log ( p ) ;
42
+ // Eventually add some final fallback options
45
43
} ,
46
44
47
45
/*
Original file line number Diff line number Diff line change @@ -18,5 +18,10 @@ if ($session->get('jgeo_position_status', false)) {
18
18
// the object will be an empty array if it hasn't been set as well
19
19
$position = json_decode($session->get('jgeo_position'));
20
20
var_dump($position);
21
+
22
+ // access the object data
23
+ $lat = $location->latitude;
24
+ $lng = $location->longitude;
21
25
}
26
+
22
27
```
You can’t perform that action at this time.
0 commit comments