the expression is correct, tested with brackets and it is the same.

with firebug i was able to find the problem: pt.lng() returns a string
instead a float somehow!

this cast works: if (parseFloat(pt.lng()) + tooltipWidthInDeg >
bounds.getNorthEast().lng() && permitLeft)

any idea for the other problem?

On 8 Apr., 14:50, Rossko <[email protected]> wrote:
> I'm a bit suspicious of this line in setTTPosition() in pdmarker.js
>      if (pt.lng() + tooltipWidthInDeg > bounds.getNorthEast().lng() &&
> permitLeft)
> I don't know enough javascript to say if that will always evaluate the
> same as
>      if ( (pt.lng() + tooltipWidthInDeg > bounds.getNorthEast().lng
> () ) && permitLeft)
> but setright always seems to be true.
--~--~---------~--~----~------------~-------~--~----~
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