How many markers?

The simplest way would be to iterate through all your locations and
calculate the distance to them:
http://code.google.com/apis/maps/documentation/javascript/reference.html#spherical

If you have many markers, you may want to use a structure like a quad-tree
for quicker lookup.

Chris

On Sat, Apr 30, 2011 at 7:22 AM, fireofhellx <[email protected]> wrote:

> ive been posting a lot of question on here lately so sorry if people
> are getting sick of me i just keep getting suck and not finding much
> help from my searches.
>
> so im making a game using google maps where the user has to get
> collectables by moving around their location (this is a mobile web
> app) this is a uni project prototype so only works for the are i live
> Cardiff. (ill hard code it to the relevant location so u can see how
> the code works)
>
> anyway so it takes the users location then follows them as they move
> ive put a circle around the users icon what i want to happen is when a
> marker(collectable item) is within the users radius of the marker to
> be removed. is there a simple way of doing this?
>
>
> (u have to let it use your location, i have also hard coded the user
> marker so you can see  how that looks)
>
> danny
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
>
>


-- 
http://twitter.com/broady

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to