Well, there is a couple things that could possibly be causing this problem, but I will go over a couple things.
First the amount of tiles fetched is directly proportional to the size of the map, if you set the map small it will only grab tiles for the area you are looking at plus the immediate surrounding area. If it didn't do this, zooming in would cause you to download GBs of data. So limiting the amount of how many tiles fetched is counter-intuitive because the maps API is already trying to retrieve the minimum amount of tiles need to display the map. Keep in mind however, if you're using flash and 3D this could cause the problem because many more tiles have to be retrieved in perspective/orthogonal then in 2D view. Next, I am not sure how you are loading tiles, but you need to make sure that the tiles are not being cached in flash, this will cause your memory to slowly creep up (memory leak). Lastly, if you want to limit the amount of tiles load at any given time, it is possible but will take a little bit of leg work, essentially it would involved building a tile overlay that kept an array of tiles, and only used those tiles, and disregarded the others. Jonathan ScribbleMaps.com On May 3, 5:15 pm, Jason Mawdsley <[email protected]> wrote: > Good day experts, > > I am developing an application that will run in Flash on small > devices. I find that I am running out of memory when using Google maps > due to the amount of tiles that are fetched. > > Is it possible to limit the amount of tiles that are fetched during > panning and zooming? I realize that this will impact performance. > > I tried searching for this, but wasn't having much luck finding any > information. > > Thanks, > Jason > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API For Flash" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/google-maps-api-for-flash?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en.
