Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
3dcb7242
Commit
3dcb7242
authored
Aug 29, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed marker dragging over map when tilt and roll are not zeroes
parent
037b0a85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
x3dom_functions.js
js/x3dom_functions.js
+6
-7
No files found.
js/x3dom_functions.js
View file @
3dcb7242
...
...
@@ -441,13 +441,14 @@ function x3dom_translation_v2(x,y,z){
var
at
=
from
.
subtract
(
mat
.
e2
());
var
up
=
mat
.
e1
();
var
newfrom
=
delta
;
// corrections
var
R0
=
Data
.
camera
.
Matrices
.
R0
;
var
from_tmp
=
R0
.
multMatrixVec
(
from
);
var
delta_tmp
=
R0
.
multMatrixVec
(
delta
);
// keeping height
newfrom
.
y
=
from
.
y
;
delta_tmp
.
y
=
from_tmp
.
y
;
var
newfrom
=
R0
.
inverse
().
multMatrixVec
(
delta_tmp
);
var
newat
=
newfrom
.
subtract
(
mat
.
e2
());
var
newmat
=
x3dom
.
fields
.
SFMatrix4f
.
lookAt
(
newfrom
,
newat
,
up
);
x3dom_setViewpoint
(
newmat
);
...
...
@@ -456,8 +457,6 @@ function x3dom_translation_v2(x,y,z){
function
x3dom_altelev
(
alt
,
elev
){
console
.
log
(
"setting elevation"
);
//x3dom_matrix_test();
var
mat
=
Scene
.
element
.
runtime
.
viewMatrix
().
inverse
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment