address.Address = items.address; address.City = items.city; address.State = items.state; address.Zip = items.zip; var currentItem = items; this._locator.addressToLocations(address, ["Loc_name", "StreetName", "City", "State", "ZIP", "Match_addr"] , dojo.hitch(this, function(candidates) { var candidate; for (var i=0, il=candidates.length; i<il; i++) { candidate = candidates; if (candidate.score >= 80) { this.addDataToMap("0" , currentItem.geoType, currentItem.image, currentItem.name, currentItem.id, currentItem.address, currentItem.city, currentItem.state, currentItem.zip, candidate.location.x, candidate.location.y ,null); } } }));
this._locator.addressToLocations(address, ["Loc_name", "StreetName", "City", "State", "ZIP", "Match_addr"] , dojo.hitch(this, function(index,candidates) { var candidate; for (var i=0, il=candidates.length; i<il; i++) { candidate = candidates; if (candidate.score >= 80) { this.addDataToMap("0" , this._items[index].geoType, this._items[index].image, this._items[index].name, this._items[index].id, this._items[index].address, this._items[index].city, this._items[index].state, this._items[index].zip, candidate.location.x, candidate.location.y ,null); } } }, i ));
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.