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: '',
                        anchor: new Microsoft.Maps.Point(10, 5),
                        title: pintitle

    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