I dont think I understand what you trying to do, but seems like just use a mouseover event on the marker itself. no need to mess with bounds.
On Wed, Apr 18, 2012 at 6:58 PM, ss ss <[email protected]> wrote: > Dear Barry, > What I am trying to achieve is a replay functionality on > the map. As you mouse over each data there is a small yellow icon to > indicate which data is mouse over ( Any better idea to hi-light the > particular points on the map itself? I see your point so how to intiliase > the GLatLngBounds()? Thank you. > > > On Thu, Apr 19, 2012 at 1:52 AM, Barry Hunter <[email protected]> > wrote: >> >> Its not clear what you trying to do. >> >> It would help to be more explicit, on exactly what you expect to >> happen, and what happens instead? >> Also exact reproduction steps. >> >> Is this a new problem? Have you made any changes recently? >> >> Having said that, looking at the code, you do >> >> bounds = new GLatLngBounds(); >> if(bounds.contains(hPoint)) >> >> So you create a new **blank** bounds, and then immidiately check if a >> point is within the bounds. >> >> That can never be true, because the bounds are not defined yet. >> >> (Or more precisly its an error, but you will probably just get false. ) >> >> >> On Wed, Apr 18, 2012 at 6:33 PM, ss <[email protected]> wrote: >> > Dear All, >> > I have a link >> > >> > here http://e-response.com.my/maps/viewMapDetails3.php?associateID=1886 . >> > If >> > you mouse over the data box on bottom left it will replay the journey. >> > The >> > problem now in the function highlightPoint the >> > function if(bounds.contains(hPoint)) is not working properly and it keep >> > centering the map for each point. Any reason for this? Thank you. >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Google Maps API V2" group. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msg/google-maps-api/-/-htI2hrR2M8J. >> > 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. >> >> -- >> 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. >> > > -- > 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. -- 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.
