Cannot find basic problem

11 views
Skip to first unread message

aufbau

unread,
Dec 5, 2011, 8:45:27 PM12/5/11
to google-map...@googlegroups.com
I have tried to figure out this problem in my larger program, but even when I have it broken down to a very simple problem I am missing something. Can anyone tell me why my marker does not display? I am guessing I have a typo but I cannot seem to find it. My test page is http://www.cornmazesamerica.com/test.php.

Thanks.


geoco...@gmail.com

unread,
Dec 5, 2011, 9:55:00 PM12/5/11
to Google Maps JavaScript API v3

http://www.cornmazesamerica.com/test.php.

Your create marker function is running before the map is initialized.
Try putting the call inside the initialize function.

-- Larry

>
> Thanks.

Juan Francisco Vega Damke

unread,
Dec 5, 2011, 9:47:33 PM12/5/11
to google-map...@googlegroups.com
Try putting the call of the function createMarker, at the end of initialize().

2011/12/5 aufbau <sske...@hotmail.com>
I have tried to figure out this problem in my larger program, but even when I have it broken down to a very simple problem I am missing something. Can anyone tell me why my marker does not display? I am guessing I have a typo but I cannot seem to find it. My test page is http://www.cornmazesamerica.com/test.php.

Thanks.



--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/BC20gl5paRUJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.



--
Be the change you want to see in the world

aufbau

unread,
Dec 6, 2011, 7:11:37 AM12/6/11
to google-map...@googlegroups.com
Larry,

Thank you so much. I had thought at one point that was my problem, and I thought I had tried that with no results, but I tried it again and it worked beautifully. I think I was confused and thinking onload() happened as soon as the body code began to execute, but that certainly would not make sense. Thanks so much. I really appreciate your help. You made my morning!
Reply all
Reply to author
Forward
0 new messages