On Dec 5, 6:35 pm, Scott Kustes <[email protected]> wrote: > Hi, > I am working on my first Google Maps app. Basically trying to put > some markers on a map based on a user search. You can see it > at:http://bodyfitburn.com/fitnessdirectory/directory/. I've been > searching around zip code 40216. > > My problem is that when I search (by zip code...the other two fields > aren't in use yet), I'm getting "GMap2 is not defined" in both FF > 3.5.5 and IE6. It looks like my map is defined, since it shows up on > the page in both, so I'm confused. The debugger is pointing me to the > function "setMapMarkers" (I can post the code here if you prefer, but > probably easier to just get to it from the source code).
This script http://maps.google.com/maps/api/js is the Version 3 script, which doesn't support GMap2. A lot of your code is Version 3 code, referencing things like google.maps.MapTypeId.ROADMAP, so it appears to be deliberate. As you also have <meta name="viewport"...> it looks like you are developing a mobile application for which Version 3 is appropriate. There another problem too: your PHP is wrong and produces invalid output. We can't help with server-side code, but perhaps you have white-space outside the <php directive. See http://bodyfitburn.com/fitnessdirectory/functions/ajax_calls/create_search_xml.php?address_zip=40216 Andrew -- 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.
