Prefetching OpenSeaMap not work

Topics: Bugs
Sep 13, 2010 at 2:21 PM

The Prefetch of OpenSeaMap stops and the Immediate Window says 404?

Sep 13, 2010 at 3:12 PM

 bool CacheTiles(ref MapType[] types, int zoom, Point p)
      {
         foreach(MapType type in types)
         {
            Exception ex;
            PureImage img;

            // tile number inversion(BottomLeft -> TopLeft) for pergo maps
            if(type == MapType.PergoTurkeyMap)
            {
               img = GMaps.Instance.GetImageFrom(type, new Point(p.X, maxOfTiles.Height - p.Y), zoom, out ex);
            }
            else // ok
            {
               img = GMaps.Instance.GetImageFrom(type, p, zoom, out ex);
            }

            if(img != null)
            {
               img.Dispose();
               img = null;
            }
            else
            {
              // return false;   << I have delete this command, now the counter in TilePrefetcher runs more ahead if no image data found in seamark layer
            }
         }
         return true;
      }

Coordinator
Sep 13, 2010 at 3:21 PM

yeah, but messagebox then says that all tiles was downloaded, which is not truth, so i'll fix it in another place

Coordinator
Sep 13, 2010 at 3:36 PM

it's ready again! with 1 retry for each tile failed to download

Sep 13, 2010 at 4:36 PM

this sound like great. If you like, i can experimenting and, if runs, implementing multitouch support to wpf (wich is more easy) and then in to winforms control.

Coordinator
Sep 13, 2010 at 5:20 PM

sure, any support is welcome ;}

Sep 13, 2010 at 5:25 PM

ok, i will see what i can do for your great project. give me a little bit more time. a weekend is needed :-)

Coordinator
Sep 13, 2010 at 5:26 PM

i have whole lifetime, no rush ;}