On May 26, 11:20 am, "[email protected]"
<[email protected]> wrote:
> Can someone please help me?
>
> I am having problems getting my custom markers to show on my map

You have defined your createMarker function like this
  function createMarker(point,name,html,icontype) { ...
which expects four arguments.

You pass in only three, so "icontype" remains undefined, and this line
fails:
  var marker = new GMarker(point,icons[icontype]);

You need to make sure your calls to a function match its definition
(unless you have coded for an optional argument, which isn't the case
here).

I strongly recommend debugging with Firefox and Firebug. It stopped on
the "var marker" line, allowing each variable to be examined -- and
icontype is shown as undefined -- and then you can step back through
the calls to the line which calls the function. That is missing an
argument.

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