Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

PCF control for auto address completion using bing map search by zipcode

$
0
0

I want to search it by postal/zip code but not able to find find module which includes zip code

 Microsoft.Maps.loadModule('Microsoft.Maps.AutoSuggest', {
                    callback: () => {
                        //show Maximum results Limits and country code
                        varoptions= { maxResults: 10, countryCode: countryCodeValue };
                        varmanager=newMicrosoft.Maps.AutosuggestManager(options);
                        //manager.attachAutosuggest(`#searchBox-${this.uniqueId}`, `#searchBoxContainer-${this.uniqueId}`, (suggestionResult) => {
                        manager.attachAutosuggest('#searchBox-'+_this.uniqueId, '#searchBoxContainer-'+_this.uniqueId, (suggestionResult) => {
                            _this.street=suggestionResult.address.addressLine;
                            _this.city=suggestionResult.address.locality;
                            //this.county = suggestionResult.address.district;
                            _this.state=suggestionResult.address.adminDistrict;
                            _this.country=suggestionResult.address.countryRegion;
                            _this.zipcode=suggestionResult.address.postalCode;
                            _this.value=suggestionResult.formattedSuggestion||"";
                            _this.notifyOutputChanged();
                        });
                    },
                    errorCallback: () => { alert("error!!"); }
                });

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images