Open Street Maps THREE.js HTML2Canvas.js canvas texture SYNC
Open Street Maps THREE.js HTML2Canvas.js canvas texture SYNC
by denis_miroshnikov_ts
HTML
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>3D item Tracking</title>
<style>
html,
body {
/*width: 100%;*/
height: 94%;
margin: 0px;
padding: 0px;
background-color: #ffffff
}
button {
position: absolute;
top: 520px;
left: 30px;
border: 1px solid black;
/*clear: both;
display: block;*/
z-index: 150;
background: red;
}
#runbtn2 {
position: absolute;
top: 520px;
left: 200px;
border: 1px solid black;
/*clear: both;
display: block;*/
z-index: 150;
background: green;
}
#info1 {
position: absolute;
top: 550px;
left: 30px;
border: 1px solid black;
/*clear: both;
display: block;*/
z-index: 150;
background: yellow;
}
#info2 {
position: absolute;
top: 590px;
left: 30px;
border: 1px solid black;
/*clear: both;
display: block;*/
z-index: 150;
background: grey;
}
#info3 {
position: absolute;
top: 630px;
left: 30px;
border: 1px solid black;
/*clear: both;
display: block;*/
z-index: 150;
background: grey;
}
#TD-canvas {
position: absolute;
height: 512px;
width: 512px;
float: left;
border: 1px;
top: 0px;
left: 30px;
}
#map-canvas-shadow {
border: 1px;
border: 1px solid black;
top: 0px;
left: 30px;
height: 512px;
width: 512px;
position: absolute;
z-index: -100;
}
#map-canvas {
height: 512px;
width: 512px;
float: right;
border: 1px;
margin-right: 30px;
margin-bottom: 10px;
}
</style>
</head>
<body>
<button id="runbtn">Run html2canvas shadow</button>
<button id="runbtn2">Run simple fill in...