Hi there!

I have been following some of Mike Williams' excellent tutorials and
am currently stuck on the marker categories tutorial (http://
econym.org.uk/gmap/categories.htm). Specifically, the issue is with
the sidebar text when using an external javascript file.

I have it working fine with the javascript embedded in the html file,
as seen here:
http://www.peterbertelsen.com/map-test/categories-test-a.html

But I cannot get it to work properly when I put the javascript in an
external file. I know that some variables/functions need to be
declared as global in order to use the external file, and have
attempted to do so in the following examples:
This first example shows the check boxes not working at all (ie the
categories do not toggle on/off):
http://www.peterbertelsen.com/map-test/categories-test-b.html (js
file: http://www.peterbertelsen.com/map-test/categories-js-b.js )

To try and rectify this, I have moved the related functions out of the
loadMap variable, which results in the check boxes working but the
sidebar text does not function correctly, as seen here:
http://www.peterbertelsen.com/map-test/categories-test-c.html (js
file: http://www.peterbertelsen.com/map-test/categories-js-c.js )

I suspect the issue is with global/local variables and/or functions,
but cannot work out which variables/functions are effecting it.

Many thanks in advance for any help you can give me!

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