|
@@ -0,0 +1,127 @@
|
|
|
|
+{% load staticfiles %}
|
|
|
|
+<!DOCTYPE html>
|
|
|
|
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
|
|
|
+ <head>
|
|
|
|
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
|
|
|
+ <title>{{ panorama.name }}</title>
|
|
|
|
+ <script>
|
|
|
|
+ var title = "{{ panorama.name|escapejs }}";
|
|
|
|
+ var img_prefix = '{{ panorama.tiles_url }}';
|
|
|
|
+ var image_loop = true;
|
|
|
|
+ </script>
|
|
|
|
+ <script src="{% static "panorama/js/pano.js" %}"></script>
|
|
|
|
+ <script>window.onload = load_pano</script>
|
|
|
|
+ <script>
|
|
|
|
+ zooms[0] = new tzoom(0);
|
|
|
|
+ zooms[0].ntiles.x = 94;
|
|
|
|
+ zooms[0].ntiles.y = 7;
|
|
|
|
+ zooms[0].tile.width = 256;
|
|
|
|
+ zooms[0].tile.height = 256;
|
|
|
|
+ zooms[0].last_tile.width = 109;
|
|
|
|
+ zooms[0].last_tile.height = 5;
|
|
|
|
+ zooms[1] = new tzoom(1);
|
|
|
|
+ zooms[1].ntiles.x = 47;
|
|
|
|
+ zooms[1].ntiles.y = 4;
|
|
|
|
+ zooms[1].tile.width = 256;
|
|
|
|
+ zooms[1].tile.height = 256;
|
|
|
|
+ zooms[1].last_tile.width = 183;
|
|
|
|
+ zooms[1].last_tile.height = 3;
|
|
|
|
+ zooms[2] = new tzoom(2);
|
|
|
|
+ zooms[2].ntiles.x = 24;
|
|
|
|
+ zooms[2].ntiles.y = 2;
|
|
|
|
+ zooms[2].tile.width = 256;
|
|
|
|
+ zooms[2].tile.height = 256;
|
|
|
|
+ zooms[2].last_tile.width = 91;
|
|
|
|
+ zooms[2].last_tile.height = 129;
|
|
|
|
+ zooms[3] = new tzoom(3);
|
|
|
|
+ zooms[3].ntiles.x = 12;
|
|
|
|
+ zooms[3].ntiles.y = 1;
|
|
|
|
+ zooms[3].tile.width = 256;
|
|
|
|
+ zooms[3].tile.height = 193;
|
|
|
|
+ zooms[3].last_tile.width = 174;
|
|
|
|
+ zooms[3].last_tile.height = 193;
|
|
|
|
+ zooms[4] = new tzoom(4);
|
|
|
|
+ zooms[4].ntiles.x = 6;
|
|
|
|
+ zooms[4].ntiles.y = 1;
|
|
|
|
+ zooms[4].tile.width = 256;
|
|
|
|
+ zooms[4].tile.height = 96;
|
|
|
|
+ zooms[4].last_tile.width = 215;
|
|
|
|
+ zooms[4].last_tile.height = 96;
|
|
|
|
+ zooms[5] = new tzoom(5);
|
|
|
|
+ zooms[5].ntiles.x = 3;
|
|
|
|
+ zooms[5].ntiles.y = 1;
|
|
|
|
+ zooms[5].tile.width = 256;
|
|
|
|
+ zooms[5].tile.height = 48;
|
|
|
|
+ zooms[5].last_tile.width = 234;
|
|
|
|
+ zooms[5].last_tile.height = 48;
|
|
|
|
+ zooms[6] = new tzoom(6);
|
|
|
|
+ zooms[6].ntiles.x = 2;
|
|
|
|
+ zooms[6].ntiles.y = 1;
|
|
|
|
+ zooms[6].tile.width = 256;
|
|
|
|
+ zooms[6].tile.height = 24;
|
|
|
|
+ zooms[6].last_tile.width = 117;
|
|
|
|
+ zooms[6].last_tile.height = 24;
|
|
|
|
+ zooms[7] = new tzoom(7);
|
|
|
|
+ zooms[7].ntiles.x = 1;
|
|
|
|
+ zooms[7].ntiles.y = 1;
|
|
|
|
+ zooms[7].tile.width = 187;
|
|
|
|
+ zooms[7].tile.height = 12;
|
|
|
|
+ zooms[7].last_tile.width = 187;
|
|
|
|
+ zooms[7].last_tile.height = 12;
|
|
|
|
+ zooms[8] = new tzoom(8);
|
|
|
|
+ zooms[8].ntiles.x = 1;
|
|
|
|
+ zooms[8].ntiles.y = 1;
|
|
|
|
+ zooms[8].tile.width = 93;
|
|
|
|
+ zooms[8].tile.height = 6;
|
|
|
|
+ zooms[8].last_tile.width = 93;
|
|
|
|
+ zooms[8].last_tile.height = 6;
|
|
|
|
+ point_list[0] = new Array("Tour Part-Dieu (crayon)", 0.714758, 41.956659, 11.233478, "");
|
|
|
|
+ point_list[1] = new Array("Tour métallique de Fourvière", 2.133944, -66.563873, 4.625330, "");
|
|
|
|
+ ref_points = new Array();
|
|
|
|
+ ref_points["Tour Part-Dieu (crayon)"] = {x:0.82724, cap:41.95666, y:0.43590, ele:11.23348};
|
|
|
|
+ ref_points["Tour métallique de Fourvière"] = {x:0.52327, cap:-66.56387, y:0.13405, ele:4.62533};
|
|
|
|
+ </script>
|
|
|
|
+ <link type="image/x-icon" rel="shortcut icon" href="{% static "panorama/img/tsf.png" %}"/>
|
|
|
|
+ <link rel="stylesheet" media="screen" href="{% static "panorama/css/map.css" %}" />
|
|
|
|
+ <script src="{% static "panorama/js/hide_n_showForm.js" %}"></script>
|
|
|
|
+ </head>
|
|
|
|
+ <body>
|
|
|
|
+ <canvas id="mon-canvas">
|
|
|
|
+ Ce message indique que ce navigateur est vétuste car il ne supporte pas <samp>canvas</samp> (IE6, IE7, IE8, ...)
|
|
|
|
+ </canvas>
|
|
|
|
+
|
|
|
|
+ <fieldset id="control"><legend>contrôle</legend>
|
|
|
|
+ <label>Zoom : <input type="range" min="0" max="2" value="2" id="zoom_ctrl"/></label>
|
|
|
|
+ <label>Cap : <input type="number" min="0" max="360" step="10" value="0" autofocus="" id="angle_ctrl"/></label>
|
|
|
|
+ <label>Élévation : <input type="number" min="-90" max="90" step="1" value="0" autofocus="" id="elvtn_ctrl"/></label>
|
|
|
|
+ </fieldset>
|
|
|
|
+
|
|
|
|
+ <div id="params">
|
|
|
|
+ <p>latitude : <em><span id="pos_lat">45.75628</span>°</em></p>
|
|
|
|
+ <p>longitude : <em><span id="pos_lon">4.84759</span>°</em></p>
|
|
|
|
+ <p>altitude : <em><span id="pos_alt">189</span> m</em></p>
|
|
|
|
+ </div>
|
|
|
|
+ <img src="{% static "panorama/img/locapoint.svg" %}" id="loca_show" alt="localiser un point" title="pour localiser un point..."/>
|
|
|
|
+ <fieldset id="locadraw"><legend id="loca_hide">Localiser un point</legend>
|
|
|
|
+ <label class="form_col" title="La latitude ϵ [-90°, 90°]. Ex: 12.55257">Latitude :
|
|
|
|
+ <input name="loca_latitude" type="number" min="-90" max="90" id="loca_latitude"/></label>
|
|
|
|
+ <label class="form_col" title="La longitude ϵ [-180°, 180°]. Ex: 144.14723">Longitude :
|
|
|
|
+ <input name="loca_longitude" type="number" min="-180" max="180" id="loca_longitude"/></label>
|
|
|
|
+ <label class="form_col" title="L'altitude positive Ex: 170">Altitude :
|
|
|
|
+ <input name="loca_altitude" type="number" min="-400" id="loca_altitude"/></label>
|
|
|
|
+ <div class="answer">
|
|
|
|
+ <input type="button" value="Localiser" id="loca_button"/>
|
|
|
|
+ <input type="button" value="Effacer" id="loca_erase"/>
|
|
|
|
+ </div>
|
|
|
|
+ </fieldset><p id="info"></p>
|
|
|
|
+ <p id="insert"><select id="sel_point" name="known_points">
|
|
|
|
+ <option>Tour Part-Dieu (crayon)</option>
|
|
|
|
+ <option>Tour métallique de Fourvière</option>
|
|
|
|
+ </select>
|
|
|
|
+ <input type="button" id="do-insert" value="insérer"/>
|
|
|
|
+ <input type="button" id="do-delete" value="suppimer"/>
|
|
|
|
+ <input type="button" id="show-cap" value="visualiser cet axe sur OSM"/>
|
|
|
|
+ <input type="button" id="do-cancel" value="annuler"/>
|
|
|
|
+ </p>
|
|
|
|
+ </body>
|
|
|
|
+</html>
|