Skip to content

Commit f612f17

Browse files
committed
Update metadata demo
1 parent 06cb5bb commit f612f17

1 file changed

Lines changed: 14 additions & 21 deletions

File tree

example/metadata.html

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,9 @@
55
<meta charset="utf-8"/>
66

77
<title>3D Tiles Renderer Metadata Example</title>
8-
<style>
9-
* {
10-
margin: 0;
11-
padding: 0;
12-
}
13-
14-
html {
15-
overflow: hidden;
16-
font-family: Arial, Helvetica, sans-serif;
17-
user-select: none;
18-
}
19-
20-
canvas {
21-
image-rendering: pixelated;
22-
outline: none;
23-
}
248

9+
<link rel="stylesheet" href="./styles.css">
10+
<style>
2511
#container {
2612
position: absolute;
2713
left: 0;
@@ -33,7 +19,7 @@
3319
font-size: 12px;
3420
}
3521

36-
#info, #meshFeatures, #structuralMetadata {
22+
#cesium-info, #meshFeatures, #structuralMetadata {
3723

3824
display: inline-block;
3925
background-color: rgba( 0, 0, 0, 0.5 );
@@ -44,14 +30,14 @@
4430

4531
}
4632

47-
#info, #info a {
33+
#cesium-info, #cesium-info a {
4834

4935
white-space: initial;
5036
color: white;
5137

5238
}
5339

54-
#info a {
40+
#cesium-info a {
5541

5642
pointer-events: all;
5743

@@ -67,15 +53,22 @@
6753
</head>
6854
<body>
6955
<div id="container">
70-
<div><div id="info">
56+
<div><div id="cesium-info">
7157
Demonstration of displaying glTF Mesh Features and
7258
<br/>
7359
Structural Metadata properties on mouse-over.
7460
<br/>
75-
See <a href="https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L6-L7">Cesium repo</a> for demo API key.</div></div>
61+
See <a href="https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L6-L7">Cesium repo</a> for demo API key.
62+
</div></div>
7663
<div><div id="meshFeatures"></div></div>
7764
<div><div id="structuralMetadata"></div></div>
7865
</div>
66+
67+
<div id="footer">
68+
<div id="logos">
69+
<img src="./logos/cesiumion.png" />
70+
</div>
71+
</div>
7972
<script src="./metadata.js" type="module"></script>
8073
</body>
8174
</html>

0 commit comments

Comments
 (0)