On Dec 5, 6:40 pm, kmcnet <[email protected]> wrote: > Hello Everyone and thanks for your help in advance. I am new to Google > Maps 3.0 (and not super strong in javascript). I have an example posted at: > > http://kidsmedicalcare.com/map30.htm > > I have tried various versions of code to place a marker, but am having no > luck. For example: > > var marker = new google.maps.Marker({ > position: new google.maps.LatLng(26.2723033, -81.7723970), > map: map > }); > > I'm not really sure what to do to get it to work. Any help would be > greatly appreciated.
I get a javascript error: Error: map is not defined Source File: http://kidsmedicalcare.com/map30.htm Line: 27 Your map variable is local to your initialize function. I would suggest moving your code that creates the marker inside the initialize function, which is initializing the map variable after the page finishes loading. -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
