> Here is the URLhttp://www.wetlandsofindia.org/attapady/attapady.php

It is working better today, but struggles for me on the basic page.

There is one polygon, but it is huge -
Your XML contains 3000 lat/long pairs.
As Grok said, you can slim down the XML by getting rid of some decimal
places (but this won't make it work much better)
Click response is slow, you seem to be doing a point-in-poly routine
by iterating through all 3,000 points.
You might want to reduce the number of points by 90% (do you really
need that many to display a region?)
You might want to look at encoded polys, though you'd have to do
something else if you wanted point-in-poly then (use the API features
perhaps)

> query: Habitat having Kurumba
I went for habitat / birds

This plotted a lot of polys, more than 9 ... eventually.
Don't you see large numbers of "script is running slowly ..." alerts?
Your page viewers will !
I don't get any script errors otherwise, its not a coding mistake.
There is simply too much data - it takes too long to transfer, it
takes your script too long to process it all, it takes the API too
long to process it all.
Even trying a simple zoom breaks for me "script is running slowly ..."
many times.
It's only javascript, after all.

As a complete alternative to many complex polys, you could look into
custom overlays.  This gets discussed here often for this kind of
situation, and takes a lot of workload off the client PC end.

cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to