Add support for canvas layers

this value is only used once - please just write `if (layer instanceof L.TileLayer.Canvas)` directly.