On Oct 20, 4:01 pm, aerialbear <[email protected]> wrote:
> Hi:
>
> This posting is in regard to this 
> page:http://realgenius.info/CommunityEvents/faces/dayDetail.jsp
>
> I need to add markers to a map - but can't know how many markers until
> runtime. So, I bound my marker tag to a backing bean and generated the
> map and markers in server-side code.
>
> The source code for the page includes this:
> <m:map width="400px" height="400px" binding="#{dayDetail.map}">
>         <m:mapControl name="GLargeMapControl"
> position="G_ANCHOR_BOTTOM_RIGHT"/>
>         <m:mapControl name="GMapTypeControl"/>
> </m:map>
>
> When I run this locally it works fine. When I push it up to the test
> server (linked above), the map area is completely blank (no amap image
> at all) and I get a javascript error "missing ; before statement. The
> "statement" is the large block of javascript code inserted to handle
> the map.
>
> All of this is happening in Firefox 3.
>
> Any help appreciated!

1. it is bad practice in the Google Maps API to have mapping script
execute inside the DOM and particularly bad inside a table.  The
suggestion is either:
1. put it in a function in the head of the document and execute that
function when the onload event fires
or
2. put the code at the very end of the DOM, just before the </body>
tag

Try running that block of code through jslint.com
http://www.jslint.com/
and see what it tells you

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