none
Custom Icon and Title for AutoSuggest RRS feed

  • Question

  • I have an autosuggest box that works fine without custom pin and labeling. When I add this....

            function selectedSuggestion(suggestionResult) {
    
                map.setView({ bounds: suggestionResult.bestView });
                var pintitle = suggestionResult.address.addressLine;
                var lookuppin = new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(suggestionResult.location),
                    {
                        icon: 'https://functionloadsto8e44.blob.core.windows.net/images/radio-tower.png',
                        anchor: new Microsoft.Maps.Point(10, 5),
                        title: pintitle
                    });
                    
                map.entities.push(lookuppin);
    
            }

    What is the problem with this code and what syntax do I need to perform this action? Thanks in advance.

    Tuesday, January 29, 2019 8:18 PM

All replies