"Unable to generate legends: zzzzz?Unable to connect to Host: zzzzz Port: -1?Please verify the Service URL specified is correct :- http://zzzzz/arcgis/services/LIVEinternal/aerials/MapServer?"
// extenstion point called by framework postCreate: function () { if ((this.rootLayer instanceof (ArcGISDynamicMapServiceLayer) || this.rootLayer instanceof (ArcGISTiledMapServiceLayer))) { //check if the layer is loaded yet, if not, add a listener to wait if (this.rootLayer.loaded) { if (this._legendResponse) { this._createRootLayerTOC(); } else { this._getLegendInfo(); } } else {//layer not yet loaded, add listener this.rootLayer.on("load", lang.hitch(this, this._getLegendInfo)); } } else { //not servicelayer this._createRootLayerTOC(); } },
error: dojo.hitch(this, this._getLegendInfo)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.