Skip to content

Commit 1931d52

Browse files
committed
modif
1 parent 0c06fed commit 1931d52

File tree

6 files changed

+25
-13
lines changed

6 files changed

+25
-13
lines changed

css/style.css

+16-7
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,21 @@ table{border-collapse: collapse;border-spacing: 0;}
3434
width:480px;
3535
height:375px;
3636
}
37-
#graphism{
38-
width:100px;
39-
height:100px;
40-
background-color:rgba(255,0,0,0.5);
41-
z-index:10;
37+
#dashboard{
38+
width:480px;
39+
height:600px;
40+
z-index:10000;
41+
background: url('../img/dashboard/fond.png');
42+
position:relative;
43+
top:0px;
44+
left:480px;
45+
}
46+
#compteur_poids{
47+
width:107px;
48+
height:120px;
49+
z-index:10000;
50+
background: url('../img/dashboard/poids.png');
4251
position:relative;
43-
top:20px;
44-
left:700px;
52+
top:490px;
53+
left:350px;
4554
}

img/.DS_Store

6 KB
Binary file not shown.

img/dashboard/fond.png

32.6 KB
Loading

img/dashboard/poids.png

6.07 KB
Loading

index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
</embed>
2222
</object>
2323
<div id="map3d"></div>
24-
<div id="graphism"></div>
24+
<div id="dashboard">
25+
<div id="compteur_poids">
26+
</div>
27+
</div>
2528
</section>
2629
</body>
2730
</html>

js/map.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,16 @@ document.onkeydown = function(e){
117117
break;
118118
case 38: //Bouton Up
119119
console.log("camera.getAltitude()"+camera.getAltitude());
120-
bougeX = 0.005;
120+
bougeX = 0.000012;
121121
break;
122122
case 40: //Bouton Down
123-
bougeX = -0.005;
123+
bougeX = -0.000012;
124124
break;
125125
case 37: //Bouton Left
126-
bougeY = -0.005;
126+
bougeY = -0.000012;
127127
break;
128128
case 39: //Bouton Right
129-
bougeY = 0.005;
129+
bougeY = 0.000012;
130130
break;
131131
case 32: //Bouton Espace
132132
sendToActionScript('espace');
@@ -161,7 +161,7 @@ function initCB(instance) {
161161

162162
// Look at the placemark we created.
163163
var la = ge.createLookAt('');
164-
la.set(45.883088, 2.5, 0, ge.ALTITUDE_RELATIVE_TO_GROUND, 0, 0, 5000);
164+
la.set(45.883088, 2.5, 0, ge.ALTITUDE_RELATIVE_TO_GROUND, 0, 0, 200);
165165
ge.getView().setAbstractView(la);
166166

167167

0 commit comments

Comments
 (0)