forked from 3DStreet/3dstreet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbasic-json.html
111 lines (105 loc) · 2.83 KB
/
basic-json.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
<script src="../dist/aframe-street-component.js"></script>
<title>Street Component!</title>
</head>
<body>
<a-scene gltf-model="dracoDecoderPath: https://www.gstatic.com/draco/versioned/decoders/1.4.3/">
<a-assets>
<streetmix-assets url="../"></streetmix-assets>
</a-assets>
<a-entity id="test" street='left: narrow; right: fence; JSON:
{
"streetmixSegmentsFeet": [
{
"width": 12,
"variantString": "",
"type": "sidewalk"
},
{
"width": 3,
"variantString": "",
"type": "sidewalk-tree"
},
{
"width": 3,
"variantString": "right|traditional",
"type": "sidewalk-lamp"
},
{
"width": 9,
"variantString": "inbound|sharrow",
"type": "drive-lane"
},
{
"width": 9,
"variantString": "inbound|green",
"type": "bike-lane"
},
{
"width": 11,
"variantString": "inbound",
"type": "light-rail"
},
{
"width": 11,
"variantString": "inbound|shared",
"type": "turn-lane"
},
{
"width": 2,
"variantString": "bollard",
"type": "divider"
},
{
"width": 11,
"variantString": "outbound|colored",
"type": "streetcar"
},
{
"width": 11,
"variantString": "outbound|colored",
"type": "bus-lane"
},
{
"width": 11,
"variantString": "right",
"type": "transit-shelter"
},
{
"width": 9,
"variantString": "outbound",
"type": "drive-lane"
},
{
"width": 9,
"variantString": "outbound|right",
"type": "turn-lane"
},
{
"width": 3,
"variantString": "",
"type": "sidewalk-tree"
},
{
"width": 3,
"variantString": "both|pride",
"type": "sidewalk-lamp"
},
{
"width": 4,
"variantString": "",
"type": "sidewalk-bench"
},
{
"width": 12,
"variantString": "",
"type": "sidewalk"
}
]
}'></a-entity>
</a-scene>
</body>
</html>