On Sep 12, 7:47 am, Alexandros <[email protected]> wrote:
> sorry wrong function
>
>         points[0] = new GLatLng(parseFloat('" '+data[0].lat+' "'),
>                                  parseFloat('" '+data[0].lng+' "'));
>         points[1] = new GLatLng(parseFloat('" '+data[1].lat+' "'),
>                                   parseFloat('" '+data[1].lng+' "'));
>
> but again doesnt work

Define "doesn't work".  If I zoom out I see 2 markers at
points[0]=(40, 22)
points[1]=(40, 22)
(from a local version which is printing the "points" array)

Your map is centered at (40.274107, 22.50294) so they aren't visible.

  -- Larry

>
> On Sep 12, 5:14 pm, Andrew Leach <[email protected]>
> wrote:
>
> > On Sep 12, 2:30 pm, Alexandros <[email protected]> wrote:
>
> > > the second linkhttp://markers.gotdns.com:8079/default.aspx
>
> > > has no markers but if you check the source they are right there
>
> > > any thought?
>
> > This isn't easy to debug because although you have a global map
> > variable, you use a local variable in your function initialize().
> > There is an issue with your data: for Javascript you should use a
> > point not a comma in decimals. If you had tried with numbers instead
> > of strings you would have got an error:
>
> > {lat: 40,12345} is incorrect. {lat:"40,12345"} will not cause an
> > error, but parseFloat(lat) will return 40, not 40.12345. parseFloat
> > ("40.12345") will produce 40.12345 (or 40,12345 in European usage).
>
> > So your markers are placed on the map, just not where you expect.
>
> > Andrew
--~--~---------~--~----~------------~-------~--~----~
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