aframe-tangram-component
Version:
A Tangram component for A-Frame.
34 lines (30 loc) • 1.1 kB
HTML
<html>
<head>
<title>A-Frame Tangram Component - Tron Style</title>
<meta name="description" content="Tron style example for Tangram component."></meta>
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="../../dist/aframe-tangram-component.min.js"></script>
<script src="https://rawgit.com/feiss/aframe-environment-component/master/dist/aframe-environment-component.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<a-asset-item id="zip-tronstyle" src="https://www.nextzen.org/carto/tron-style/6/tron-style.zip" />
</a-assets>
<a-entity environment="preset: starry"></a-entity>
<a-entity
position="0 1 -4"
geometry="primitive: plane; width: 8; height: 8;"
material="color: #fff; shader: flat;"
tangram-map="
apiKey: UJcQwnnfQnWcPtKe2aYaEw;
style: #zip-tronstyle;
center: 16.3738, 48.2082;
zoom: 12;
pxToWorldRatio: 100;
"
>
</a-entity>
</a-scene>
</body>
</html>