Improve type checking in ol.source.DebugTile

This commit is contained in:
Tom Payne
2013-11-20 11:06:36 +01:00
parent 64021b130a
commit d91479df06

View File

@@ -61,7 +61,8 @@ ol.DebugTile_.prototype.getImage = function(opt_context) {
canvas.width = tileSize[0];
canvas.height = tileSize[1];
var context = canvas.getContext('2d');
var context = /** @type {CanvasRenderingContext2D} */
(canvas.getContext('2d'));
context.strokeStyle = 'black';
context.strokeRect(0.5, 0.5, tileSize[0] + 0.5, tileSize[1] + 0.5);