Пример #1
0
        public void GetPhotosmedium(BoundaryBox bbox, string size, int from, int to)
        {
            StringBuilder str = new StringBuilder(baseurl);

            str.Append(string.Format("&minx={0}&miny={1}&maxx={2}&maxy={3}", bbox.MinimumLongitude, bbox.MinimumLatitude, bbox.MaximumLongitude, bbox.MaximumLatitude));

            str.Append(string.Format("&from={0}&to={1}", from, to));
            if (size.Equals("medium"))
            {
                str.Append("&size=" + size);
                HtmlPage.Window.Invoke("GetMediumPanoramioPhotos", str.ToString());
            }
        }
Пример #2
0
        public void GetPhotos(BoundaryBox bbox, string size, int from, int to)
        {
            StringBuilder str = new StringBuilder(baseurl);

            str.Append(string.Format("&minx={0}&miny={1}&maxx={2}&maxy={3}", bbox.MinimumLongitude, bbox.MinimumLatitude, bbox.MaximumLongitude, bbox.MaximumLatitude));

            str.Append(string.Format("&from={0}&to={1}", from, to));

            //call jquery on the default aspx , panoramio doesn't have a clientaccesspolicy, the use jason with padding
            if (size.Equals("square"))
            {
                str.Append("&mapfilter=true&size=square");
                HtmlPage.Window.Invoke("GetPanoramioPhotos", str.ToString());

            }
        }
Пример #3
0
 private void GetFotosPanoramico(LocationRect bbox)
 {
     PanoramioNet.BoundaryBox PanoramioOptions = new PanoramioNet.BoundaryBox
     {
         MaximumLatitude = bbox.North,
         MinimumLatitude = bbox.South,
         MaximumLongitude = bbox.East,
         MinimumLongitude = bbox.West
     };
     Panoramio PanoramioAPI = new Panoramio();
     PanoramioAPI.GetPhotoCollectionCompleted += new Panoramio.PhotoCollectionHandler(_panoramioAPI_GetPhotoCollectionCompleted);
     PanoramioAPI.GetPhotos(PanoramioOptions, "square", 0, 10);
 }