Fixing dependencies
This avoids undefined this.tileManager.addMap, and re-adds the TileManager to the mobile build profile.
This commit is contained in:
committed by
Bart van den Eijnden
parent
f4f72d5eeb
commit
fe0ffbf56e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user