On Dec 8, 6:06 am, foxykav <[EMAIL PROTECTED]> wrote:
> Hi, I'm new to javascript and Google Maps API and I'm trying to load
> multiple markers from a hardcoded javascript array in the script. For
> some reason the map is not loading the markers. Do I have a syntax
> problem or something? I cannot see the problem.

What browser are you using?

If you are using Firefox or Opera there is an "Error Console", which
in Firefox tells me:
Error: missing ; before statement
Source File: http://www.holmesglenoutdoorrecreation.com/markers.html
Line: 9, Column: 4
Source Code:
var turns ["-37.782639, 145.227631", "-37.783745, 145.227417",
"-37.784317, 145.232834", "-37.793827, 145.235443"];

If you are using IE, you need to click on the little yellow triangle
in the bottom right hand side.  That tells me:
Line: 8
Error: Expected ';'

You are missing an '=' sign to assign your array.

var turns = ["-37.782639, 145.227631", "-37.783745, 145.227417",
"-37.784317, 145.232834", "-37.793827, 145.235443"];

BTW - why are you using an array of strings of coordinate values?  Why
not numbers or GLatLngs?

  -- Larry


>
> The links is at:http://www.holmesglenoutdoorrecreation.com/markers.html
>

--~--~---------~--~----~------------~-------~--~----~
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