toggles now off on init
This commit is contained in:
parent
7aeedbd6ab
commit
7f852afe7c
@ -140,19 +140,19 @@ GFW.modules.maplayer = function(gfw) {
|
|||||||
this._bounds = new google.maps.LatLngBounds(sw, ne);
|
this._bounds = new google.maps.LatLngBounds(sw, ne);
|
||||||
gfw.log.info(this._options.getTileUrl({x: 3, y: 4},3));
|
gfw.log.info(this._options.getTileUrl({x: 3, y: 4},3));
|
||||||
this._displayed = false;
|
this._displayed = false;
|
||||||
this._addControll();
|
|
||||||
this._maptype = new google.maps.ImageMapType(this._options);
|
this._maptype = new google.maps.ImageMapType(this._options);
|
||||||
|
|
||||||
this._tileindex = this._map.overlayMapTypes.length;
|
this._tileindex = this._map.overlayMapTypes.length;
|
||||||
this._map.overlayMapTypes.setAt(this._tileindex, null);
|
this._map.overlayMapTypes.setAt(this._tileindex, null);
|
||||||
this._setupListeners();
|
this._setupListeners();
|
||||||
|
|
||||||
this._handleLayer();
|
|
||||||
|
|
||||||
if (this.layer.get('title') != 'FORMA'){
|
if (this.layer.get('title') != 'FORMA'){
|
||||||
this.layer.attributes['visible'] = false;
|
this.layer.attributes['visible'] = false;
|
||||||
this._toggleLayer();
|
//this._toggleLayer();
|
||||||
}
|
}
|
||||||
|
this._addControll();
|
||||||
|
this._handleLayer();
|
||||||
|
|
||||||
},
|
},
|
||||||
_setupListeners: function(){
|
_setupListeners: function(){
|
||||||
var that = this;
|
var that = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user