예제 #1
0
        public override Task <ThumbnailInfo> GetThumbnailInfoAsync(PostClass.StatusGeo geo)
        {
            var thumb = new ThumbnailInfo
            {
                MediaPageUrl      = this.CreateMapLinkUrl(geo.Latitude, geo.Longitude),
                ThumbnailImageUrl = this.CreateStaticMapUrl(geo.Latitude, geo.Longitude),
                TooltipText       = null,
            };

            return(Task.FromResult(thumb));
        }
예제 #2
0
        public override Task <ThumbnailInfo> GetThumbnailInfoAsync(PostClass.StatusGeo geo)
        {
            var size = new Size(SettingManager.Common.MapThumbnailWidth, SettingManager.Common.MapThumbnailHeight);
            var zoom = SettingManager.Common.MapThumbnailZoom;

            var thumb = new OSMThumbnailInfo(geo.Latitude, geo.Longitude, zoom, size)
            {
                MediaPageUrl = this.CreateMapLinkUrl(geo.Latitude, geo.Longitude),
            };

            return(Task.FromResult((ThumbnailInfo)thumb));
        }
예제 #3
0
 public abstract Task <ThumbnailInfo> GetThumbnailInfoAsync(PostClass.StatusGeo geo);