4 <title>Leaflet debug page
</title>
6 <link rel=
"stylesheet" href=
"../../dist/leaflet.css" />
7 <!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
9 <link rel=
"stylesheet" href=
"../css/screen.css" />
11 <script src=
"../leaflet-include.js"></script>
15 <div id=
"map" style=
"width: 600px; height: 600px; border: 1px solid #ccc"></div>
17 <script type=
"text/javascript">
19 var tiles
= new L
.TileLayer
.Canvas();
21 tiles
.drawTile = function(canvas
, tile
, zoom
) {
22 var ctx
= canvas
.getContext('2d');
24 ctx
.fillStyle
= 'white';
25 ctx
.fillRect(0, 0, 255, 255);
28 ctx
.fillStyle
= 'black';
29 ctx
.fillText('x: ' + tile
.x
+ ', y: ' + tile
.y
+ ', zoom:' + zoom
, 20, 20);
32 ctx
.strokeStyle
= 'red';
42 var map
= new L
.Map('map', {center
: new L
.LatLng(50.5, 30.51), zoom
: 15, layers
: [tiles
]});