This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var drawingCanvas = document.getElementById('myDrawing'); | |
// Check the element is in the DOM and the browser supports canvas | |
if (drawingCanvas.getContext) { | |
// Initaliase a 2-dimensional drawing context | |
var context = drawingCanvas.getContext('2d'); | |
// All necessary local variables | |
var HEIGHT = 325; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script> | |