我有位置数据可以使用 .Net 推送用户时间线。我创建 Location Item 并将其分配给 TimeLine Item 中的 Location 字段,如下面的代码。但它没有在时间轴卡片中显示任何位置图或数据。但它显示了导航。我需要在卡片上显示位置图像。
MirrorService Service = new MirrorService(new BaseClientService.Initializer()
{
Authenticator = Utils.GetAuthenticatorFromState(state)
});
TimelineItem timelineItem = new TimelineItem();
timelineItem.Creator = new Contact()
{
Id = "MEETUP_LOC",
DisplayName = "Meetup Updates",
};
Location location = new Location() {};
location.Address = "Voice Lounge, Colombo";
location.Latitude = 6.887035;
location.Longitude = 79.866193;
timelineItem.Location = location;
timelineItem.Notification = new NotificationConfig() {Level = "DEFAULT"};
timelineItem.MenuItems = new List<MenuItem>()
{
new MenuItem() {Action = "NAVIGATE"},
new MenuItem() {Action = "DELETE"},
new MenuItem() {Action = "SHARE"},
};
Service.Timeline.Insert(timelineItem).Fetch();
我如何使用地图图像发送位置数据。我应该使用 HTML 吗?