uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.removeChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.4 :: <TOP_LEVEL> :: line 48" data: no]
//Listen for a change of basemap (NIM080755) dojo.forEach(dojo.query(".esriBasemapGalleryNode"),function(galleryNode){ dojo.connect(galleryNode,"onclick",function(){ _this._basemapButton.closeDropDown(); _this._disableAllMapFunctionUntilBasemapUpdates(); }); });
//this is a a stopgap measure until ESRI fixes NIM080755 _disableAllMapFunctionUntilBasemapUpdates: function(){ var _this = this; //disable the map it id done updating the basemap var mapStandby = new dojox.widget.Standby({target: _this.map.container}); document.body.appendChild(mapStandby.domNode); mapStandby.startup(); mapStandby.show(); var mapUpdateEndConnect = dojo.connect(_this.map,"onUpdateEnd",function(){ mapStandby.destroy(); dojo.disconnect(mapUpdateEndConnect); }); }
//added to account for errors caused by NIM080755 window.onerror = function(){ alert("An error has occured.\nYou're map will likely continue to function, but you may see inconsistent results.\nRefresh your browser to start over."); };
dojo.connect(this.basemapGallery,"onSelectionChange",function(){ //disable the map until it done updating the basemap var mapStandby = new dojox.widget.Standby({target: _this.map.container}); document.body.appendChild(mapStandby.domNode); mapStandby.startup(); mapStandby.show(); var mapUpdateEndConnect = dojo.connect(_this.map,"onUpdateEnd",function(){ //disconnect the listener dojo.disconnect(mapUpdateEndConnect); //destroy the map standby mapStandby.destroy(); }); });
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.