我尝试过使用BotBuilder-Location通过Bing Maps API来收集用户的位置。我遵循了BotBuilder-Location的GitHub repository上的说明,并使用示例中的代码成功地显示了Bing Maps上的地图:
var options = {
prompt: "Where should I ship your order?",
useNativeControl: true,
reverseGeocode: true,
requiredFields:
locationDialog.LocationRequiredFields.streetAddress |
locationDialog.LocationRequiredFields.locality |
locationDialog.LocationRequiredFields.region |
locationDialog.LocationRequiredFields.postalCode |
locationDialog.LocationRequiredFields.country
};
locationDialog.getLocation(session, options)但是,在位置提示中,字符串"botbuilder- location :TitleSuffix“一直显示,并且在显示地图后,对话框不会继续,而是显示字符串"botbuilder-location:MultipleResultsFound”(Screenshot of unexpected strings)。我已经在Emulator以及Skype和Facebook Messenger上尝试过了,结果都是一样的。
有人知道怎么解决这个问题吗?
谢谢并致以最良好的问候!
发布于 2017-01-12 02:38:55
这是一个已知问题,报告为here。在那里您还可以找到一种解决方法。控件背后的团队正在测试一个潜在的修复程序。
https://stackoverflow.com/questions/41597122
复制相似问题