2016-05-13 8 views
0

私は、ArcGIS Webアプリケーションビルダを使用して、ArcGISのウィジェットを作成しています、今私は、マップ上タイルレイヤーを追加するための問題に直面メートル。上記のコードでarcgisマップにタイルレイヤーを追加する方法は?

postCreate: function() { 
      var this_object = this; 
      this.graphicsLayerGSV = new GraphicsLayer(); 
      this.map.addLayer(this.graphicsLayerGSV); 
      this.handlers = []; 
      this.img = domConstruct.create("img", null, win.body(), "first"); 
      this.img.src = this.folderUrl + "images/flying_gsv_man_e.png"; 
      this.img.style.position = "absolute"; 
      this.inherited(arguments); 
      onsole.clear(); 
      var socketURL = "ws://192.168.100.109:8082";//this.config.socketUrl; 
      console.log('Websocket URL :: ' + this.config.socketUrl); 

      var layover = new WebTiledLayer("http://dev.site.com/map/${level}/${row}/${col}.png"); 
      this.map.addLayer(layover); 
      console.log(layover,'is working'); 

this.map.addLayer(this.graphicsLayerGSV)取り組んでいるが、this.map.addLayer(乗り継ぎ)が動作していません。

答えて

0

どのようなエラーが表示されますか?

は層がロードされていないことが、まだこれを試してください。

var layover = new WebTiledLayer("http://dev.alamatint.com/map/${level}/${row}/${col}.png"); 
if(layover.loaded){ 
    this.map.addLayer(layover); 
} else { 
    on(layover, "load", lang.hitch(this, function(){ 
     this.map.addLayer(layover); 
    } 
} 

あなたは

と "道場/ _base/LANG" "で道場を/" 持っていることを確認
関連する問題