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.