I am using the Google Maps API to plot markers grouped into categories
via checkboxes. Some categories of markers are to load when the page
loads, which are contained in a single XML file, other categories are
to load after the user toggles the checkbox associated with a group of
Please see this link for clarification:
[url removed, login to view]
Some categories are being read from "[url removed, login to view]", which loads when
the page loads ([url removed, login to view]), specifically
these: APDs & DSIs, Independent Living, Airports, Stadiums, and Social
Security. All other categories are to load "on demand" after the user
specifically toggles its checkbox on. For instance, "Targets" is to be
read from "[url removed, login to view]", located here: [url removed, login to view]
I can't figure out how to do this to save my life. I am assuming that
what I need is a JS function that sends the signal to load various XML files based on which checkbox is clicked. A user on the Google Maps API discussion board says this about the preceding task: "That should be relatively simple to piece together, you can just take the Gmap API documented XML loading code, and replace the static filename with a variable, and wrap that code inside your own function that has a filename as the parameter."
So what I need is for each category to load from its individual XML file on demand, when the user toggles its checkbox on. I do NOT want all the xml files loaded when the page loads (as this will take a long time and freeze the broswer up). Also, after the user toggles a layer on and the XML file is loading, I want the overlay message to pop-up during the load time, like it does initially on the map ([url removed, login to view]). I am dealing with a large number of points and I know this is a classic database application, but my server cannot run MySQL. Also, I know all the solution to my problem is very simple for any semi-experienced coder... I just need some help beyond my own capabilities.