Hi Jonas-

Just noticed your first question was never answered.

Doing tests with polygon performance is tricky, as there are two
things to measure:
1) Number of polygons 2) Number of points in a polygon
So you might great performance with a large number of polys with small
# of points, or small # of polys with large # of points. A large # of
polys with large # of points will of course be the worst of the three.

Either way, you'll get the performance by encoding polylines, as then
we'll only display the vertices needed for the particular zoom level.
You can also look into only loading polys that are visible in the
current viewport, but that's a bit trickier from a coding perspective.
Javier recently brought that issue up in the forum (with no response
yet).

There's a good tutorial about using encoded polylines in the Flash API here:
http://gvlt.wordpress.com/2008/05/17/tutorial-thematic-mapping-with-the-google-maps-flash-api/

The best general resource about encoded polys is here:
http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/

- pamela


On Sat, Feb 7, 2009 at 2:34 AM, Jonas <[email protected]> wrote:
>
> Hmm, I may have been a bit hasty on the first question... I guess I
> could save the overlays in an array and access them later.
> Second question still remains though.
>
> On Feb 6, 4:01 pm, Jonas <[email protected]> wrote:
>> I'm loading an EsriShape-file (.shp) and I'm adding each region as a
>> separate polygon overlay to my Google Map. I've got two questions
>> about this.
>>
>> 1.
>> I've been trying to figure out how to access each of these overlays
>> after they have been added to the map object, since I want to change
>> their properties individually. How can I do this?
>>
>> 2.
>> When loading large shape-files, with a lot of polygons, the map will
>> almost be unusable due to its rendering times. Have you done any test
>> on how many points/polygons that can be added as overlays, without
>> loosing too much performance?
> >
>

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