×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    13

    Several Tiles Display

    Hi Everybody,
    I am developing a mobil application to display maps, really simple version of google earth, this maps are compound of several tiles which correspond to differents sectors of the map. What is the best way to compound them in a single image on a canvas?. I have thought to display them independetly with diferent anchor points to fit its right possition in the final map but if I want to move on the map I would have to move all of the tiles each time. As another possibility I have thought to create a new larger image from all the tiles, it would be easier to move on the map since I just had to to move one image but what about the penalty of creating the new large image and handle it? Any example of how to compound them?.
    Thanks in advance

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Several Tiles Display

    Probably having more smaller images is a better solution to handle map movement and precaching of adiacent tiles, to let the user wait less for map tiles.

    About image compounding, you could simply create a bigger image and, getting its Graphics via getGraphics(), you could paint on it the smaller images.

    Pit

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    13

    Re: Several Tiles Display

    The problem is that the tile resolutions of bitmap are 256*256 and depending of the area to be displayed and the zoom level, it could be up to 100 tiles to be combined on the screen which have a resolution of 240*290.
    I have already tried it scaling down and combined the tiles in a final image but it is definitively too slow.
    I should find a way to combine the tiles on the screen without so much process.

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Several Tiles Display

    100 tiles seems to be quite a lot to be displayed at once for a single map screen. Just to do an example, if I remember well, Google Maps uses something like 10-20 tiles for each screen. You could try to use less tiles, looking for an optimal solution for both loading time and map movement.

    Pit

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    13

    Re: Several Tiles Display

    thanks, this seems the most rasonable way to handle it. If I reduce the number of tiles to a maximum of 10-20, the solution of scaling and combine the tiles in a larger image turns to be enough efficient.

Similar Threads

  1. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  2. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  3. Replies: 2
    Last Post: 2003-08-07, 12:58
  4. Game Developement - Display object on a image background
    By kenkwokkam in forum Mobile Java General
    Replies: 0
    Last Post: 2003-02-08, 14:58
  5. Display question ...
    By kapot in forum Mobile Java General
    Replies: 0
    Last Post: 2002-10-14, 22:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •