thanks
Andrew Leach
let me try that and see where it takes me
regards xeus

On Oct 27, 4:06 am, Andrew Leach <[email protected]> wrote:
> On 27 October 2011 11:49, xeus <[email protected]> wrote:
>
> > guys hi,
> > am working on a project (http://m4water.org/m4wmaps/phjs.php) which
> > requires all markers to appear if they are within an active polygon
> > and all those outside the polygon not to appear.from the project url
> > its self evident. thanks.
>
> Cor. What a lot of data you give to the page!
>
> I would suggest the best way to deal with this amount of data is only
> fetch what you need, when you need it. That is:
>
> - User clicks on a polygon choice
> - You clear any existing markers
> - You change the polygon's colour
> - You download the data for that polygon (using GDownloadUrl and a
> server-side script which provides the data)
> - You display the points
>
> That requires either an extra field in your database for the subcounty
> which you can use to determine which points to select, or a bit of
> point-in-polygon analysis. The first is definitely a better method of
> selection.
>
> You could use point-in-polygon analysis, though, to determine which
> subcounty contains a point clicked by a user: then use that as the
> polygon choice instead of the radio button and proceed as before.
> 4.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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