diff --git a/voicegardens/static/styles.css b/voicegardens/static/styles.css index adcc675..9c0fcb1 100644 --- a/voicegardens/static/styles.css +++ b/voicegardens/static/styles.css @@ -1,5 +1,10 @@ /* Custom CSS styles */ -canvas { +html * { border: 1px black solid; /* TODO: experimenting for now */ } + +canvas { + opacity: 0; + z-index: 10000000000; +} diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index b84e794..faf97e1 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -9,6 +9,7 @@ var canvasColour = "white"; var canvasHeight = 400; var canvasWidth = 800; var frameRate = 30; +var mappa = new Mappa("Leaflet"); var microphone; var newSoundJustRecorded = false; var playButton; @@ -18,6 +19,12 @@ var recording; var recordingTimeout = 30000; // 30 seconds (in milliseconds) var shapes = []; var stopButton; +var tileMapOptions = { + lat: 0, + lng: 0, + zoom: 5, + style: "/static/tiles/{z}/{x}/{y}.png" +}; function record() { /** @@ -210,7 +217,12 @@ function setup() { /** * 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(); frameRate(frameRate); } diff --git a/voicegardens/templates/index.html b/voicegardens/templates/index.html index d345031..f4b0b47 100644 --- a/voicegardens/templates/index.html +++ b/voicegardens/templates/index.html @@ -23,6 +23,8 @@
  • Archive
  • +
    +