Hi Larry, Please check the doc of the API: I am giving the handler function and this handler function is called back by Google Maps API with a GLatLng as input param.
The GLatLng.lng() return a Number according to its spec not a String So, the issue is really there a rooted in the input to the callback as supplied by Google The problem that it causes me is that strong type checking fails: I'm expecting a number and i get a string regards didier On Jan 16, 7:35 am, "[email protected]" <[email protected]> wrote: > On Jan 15, 10:17 pm, Didier DURAND <[email protected]> wrote: > > > Hello, > > > On v2.x, I have the following issue: the lng() function of GLatLng > > returned to handler of getNearestPanoramaLatLng() is sometimes given > > as a String rather than a Number as it should be. > > > Please, run code sample below to reproduce. > > Why don't you post a link to a map that exhibits the problem? And > what problem does this behavior cause you? > > > > > Let me know if I make a mistake or what > > Typically the API will return the type that you give it. Somewhere > outside of the code sample are you using a string to set the lng > value? > > -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
