don't load google layers when gmaps is not loaded
This commit is contained in:
parent
0449674e6b
commit
463ff67642
@ -4,6 +4,8 @@
|
|||||||
====================
|
====================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if(typeof(google) !== 'undefined' && typeof(google.maps) !== 'undefined') {
|
||||||
|
|
||||||
function CanvasTileLayer(canvas_setup, render) {
|
function CanvasTileLayer(canvas_setup, render) {
|
||||||
this.tileSize = new google.maps.Size(256, 256);
|
this.tileSize = new google.maps.Size(256, 256);
|
||||||
this.maxZoom = 19;
|
this.maxZoom = 19;
|
||||||
@ -92,3 +94,5 @@ CanvasTileLayer.prototype.releaseTile = function (tile) {
|
|||||||
var id = tile.getAttribute('id');
|
var id = tile.getAttribute('id');
|
||||||
delete this.tiles[id];
|
delete this.tiles[id];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
(function(exports) {
|
(function(exports) {
|
||||||
|
|
||||||
|
if(typeof(google) === 'undefined' || typeof(google.maps) === 'undefined') return;
|
||||||
|
|
||||||
function GMapsTileLoader() {
|
function GMapsTileLoader() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
(function(exports) {
|
(function(exports) {
|
||||||
|
|
||||||
|
if(typeof(google) === 'undefined' || typeof(google.maps) === 'undefined') return;
|
||||||
|
|
||||||
function GMapsTorqueLayer(options) {
|
function GMapsTorqueLayer(options) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.key = 0;
|
this.key = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user