avoid loading leaflet layers when leaflet is not present

This commit is contained in:
javi 2013-09-30 16:31:47 +02:00
parent 84b415b87e
commit caf49e2a51
3 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,4 @@
if(typeof(L) !== 'undefined') {
/**
* full canvas layer implementation for Leaflet
*/
@ -120,3 +121,5 @@ L.CanvasLayer = L.Class.extend({
}
});
} //L defined

View File

@ -1,3 +1,4 @@
if(typeof(L) !== 'undefined') {
L.Mixin.TileLoader = {
@ -128,3 +129,5 @@ L.Mixin.TileLoader = {
}
}
} //L defined

View File

@ -1,3 +1,4 @@
if(typeof(L) !== 'undefined') {
/**
* torque layer
*/
@ -216,3 +217,4 @@ L.TiledTorqueLayer = L.TileLayer.Canvas.extend({
});
} //L defined