hackity hack hack tiles
This commit is contained in:
parent
fb695178f1
commit
9c3a32a82b
@ -1,5 +1,10 @@
|
|||||||
/* Custom CSS styles */
|
/* Custom CSS styles */
|
||||||
|
|
||||||
canvas {
|
html * {
|
||||||
border: 1px black solid; /* TODO: experimenting for now */
|
border: 1px black solid; /* TODO: experimenting for now */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
canvas {
|
||||||
|
opacity: 0;
|
||||||
|
z-index: 10000000000;
|
||||||
|
}
|
||||||
|
@ -9,6 +9,7 @@ var canvasColour = "white";
|
|||||||
var canvasHeight = 400;
|
var canvasHeight = 400;
|
||||||
var canvasWidth = 800;
|
var canvasWidth = 800;
|
||||||
var frameRate = 30;
|
var frameRate = 30;
|
||||||
|
var mappa = new Mappa("Leaflet");
|
||||||
var microphone;
|
var microphone;
|
||||||
var newSoundJustRecorded = false;
|
var newSoundJustRecorded = false;
|
||||||
var playButton;
|
var playButton;
|
||||||
@ -18,6 +19,12 @@ var recording;
|
|||||||
var recordingTimeout = 30000; // 30 seconds (in milliseconds)
|
var recordingTimeout = 30000; // 30 seconds (in milliseconds)
|
||||||
var shapes = [];
|
var shapes = [];
|
||||||
var stopButton;
|
var stopButton;
|
||||||
|
var tileMapOptions = {
|
||||||
|
lat: 0,
|
||||||
|
lng: 0,
|
||||||
|
zoom: 5,
|
||||||
|
style: "/static/tiles/{z}/{x}/{y}.png"
|
||||||
|
};
|
||||||
|
|
||||||
function record() {
|
function record() {
|
||||||
/**
|
/**
|
||||||
@ -210,7 +217,12 @@ function setup() {
|
|||||||
/**
|
/**
|
||||||
* The p5.js initial setup function.
|
* The p5.js initial setup function.
|
||||||
**/
|
**/
|
||||||
createCanvas(canvasWidth, canvasHeight);
|
var canvas = createCanvas(canvasWidth, canvasHeight);
|
||||||
|
canvas.parent("canvasContainer");
|
||||||
|
|
||||||
|
var tileMap = mappa.tileMap(tileMapOptions);
|
||||||
|
tileMap.overlay(canvas);
|
||||||
|
|
||||||
setupRecording();
|
setupRecording();
|
||||||
frameRate(frameRate);
|
frameRate(frameRate);
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
<li><a href="/archive">Archive</a></li>
|
<li><a href="/archive">Archive</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<div id="canvasContainer"></div>
|
||||||
|
|
||||||
<script src="/static/leaflet/leaflet-src.js" charset="utf-8"></script>
|
<script src="/static/leaflet/leaflet-src.js" charset="utf-8"></script>
|
||||||
<script src="/static/mappajs/mappa.min.js" charset="utf-8"></script>
|
<script src="/static/mappajs/mappa.min.js" charset="utf-8"></script>
|
||||||
<script src="/static/p5js/p5.min.js" charset="utf-8"></script>
|
<script src="/static/p5js/p5.min.js" charset="utf-8"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user