Hi,

I am working on an application where I need to load lots of points. I  
have them cluster on the database on grids at different scales for  
different zoom levels. So for example I have a table 'grid10' where I  
have grouped all my source points in cells of 10 by 10 degrees with  
stats on how many points are inside. I also have grid5, grid1, grid05  
and grid01.

In the Flex app when the map changes its zoom I go an retrieve the  
appropriate grid cells for the particular zoom level. For lower zoom  
levels I can just load all the cells and represent them as Polygons in  
the map with different colors depending on how much data I have an so  
on.

The problem comes when I get to higher zoom levels. Then I can not  
just represent all the polygons for this level as I might add 5000  
polygons, and this is not satisfactory. I could only load the cells  
within the viewport, but then when the user pans the map I would have  
to continuously check if there are cells on the newly visible areas.

I thought then that the best would probably to create a  
TileLayerOverlay that will get the polygons from the server and  
represent them as Sprites. This way every time Google Maps think a  
tile should be created I put also my data on it.

The other possibility I suppose is using something like the  
MarkerManager. I thought that the MarkerManager might take care of  
rendering only the required points that are visible at the moment. But  
I look at the example available and it loada all the markers, at all  
zoom levels, on start up. And this is not feasible for me or I would  
kill the client.

What do you think would be the best? I am missing any option?

Ideally I am looking into something like Spatial Key, for those who  
knows it, where the grid cells get divided with a smooth effect into  
smaller ones when the user zoom in into the map.

Thanks in advance for any help.

Javier de la Torre
www.vizzuality.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to