Fixing dependencies

This avoids undefined this.tileManager.addMap, and re-adds the TileManager
to the mobile build profile.
This commit is contained in:
ahocevar
2013-06-07 08:35:03 +02:00
committed by Bart van den Eijnden
parent f4f72d5eeb
commit fe0ffbf56e
2 changed files with 3 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ OpenLayers/Protocol/HTTP.js
OpenLayers/Protocol/WFS.js
OpenLayers/Protocol/WFS/v1_0_0.js
OpenLayers/Strategy/Fixed.js
OpenLayers/TileManager.js
[exclude]

View File

@@ -614,9 +614,8 @@ OpenLayers.Map = OpenLayers.Class({
{includeXY: true}
);
if (this.tileManager !== null) {
if (OpenLayers.TileManager &&
!(this.tileManager instanceof OpenLayers.TileManager)) {
if (OpenLayers.TileManager && this.tileManager !== null) {
if (!(this.tileManager instanceof OpenLayers.TileManager)) {
this.tileManager = new OpenLayers.TileManager(this.tileManager);
}
this.tileManager.addMap(this);