|
@@ -144,9 +144,20 @@ function draw_image(ox, oy) {
|
|
|
angle_control.value = cap_ele.cap.toFixed(2);
|
|
|
elvtn_control.value = cap_ele.ele.toFixed(2);
|
|
|
update_url();
|
|
|
+
|
|
|
|
|
|
- if (map_never_drawn) { load_map() }
|
|
|
- update_map();
|
|
|
+ if (Object.keys(ref_points).length>1){
|
|
|
+
|
|
|
+ if (typeof panorama_lat !== 'undefined') {
|
|
|
+ if (map_never_drawn ) { load_map() }
|
|
|
+ update_map();
|
|
|
+ } else {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ location.reload();
|
|
|
+ };
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
function draw_tile_del(ref, idx, tx, ty, ox, oy, twidth, theight) {
|