|
@@ -753,7 +753,6 @@ function change_angle() {
|
|
var pos_x = resxy.x;
|
|
var pos_x = resxy.x;
|
|
var pos_y = Math.floor(zm.im.height/2 - resxy.y);
|
|
var pos_y = Math.floor(zm.im.height/2 - resxy.y);
|
|
putImage(pos_x, pos_y);
|
|
putImage(pos_x, pos_y);
|
|
- //update_map(); // Doesn't work on first load...
|
|
|
|
}
|
|
}
|
|
|
|
|
|
function check_prox(x, y, r) { //verification si un point de coordonnées x, y est bien dans un cercle de rayon r centré en X,Y.
|
|
function check_prox(x, y, r) { //verification si un point de coordonnées x, y est bien dans un cercle de rayon r centré en X,Y.
|
|
@@ -1080,6 +1079,7 @@ function load_pano() {
|
|
angle_control = document.getElementById("angle_ctrl");
|
|
angle_control = document.getElementById("angle_ctrl");
|
|
angle_control.value = initial_orientation.cap;
|
|
angle_control.value = initial_orientation.cap;
|
|
angle_control.onchange = change_angle;
|
|
angle_control.onchange = change_angle;
|
|
|
|
+ angle_control.onchange = update_map;
|
|
angle_control.onclick = change_angle;
|
|
angle_control.onclick = change_angle;
|
|
elvtn_control = document.getElementById("elvtn_ctrl");
|
|
elvtn_control = document.getElementById("elvtn_ctrl");
|
|
elvtn_control.value = initial_orientation.elevation;
|
|
elvtn_control.value = initial_orientation.elevation;
|