Thanks very much for the tip which I did use.
Despite my limited comprehension of Javascript, I was able to crudely
hack my way through "Using the Associative arrays and Custom Icons"
tutorial. l've now successfully managed to get my map to show the one
static primary marker and toggle between different groups of other
markers, with each individual marker having a custom icon. I am
reading all of the data from an xml file, as demonstrated in the
tutorial.
However I now have a follow up question if anyone may have some
additional tips:
Is there a way in which I could possibly create a Javascript function,
whers an OnClick event would send Geocoded requests and return the
groups of markers for the various requested groups of 3 or 4 places
simultaneously (exp. France/Japan/California)?
I know with the Static Maps HTTP requests you are able to return
multiple markers from the string parameters using abbreviated codes
separated by the "|" character delimiter. For example like :
http://maps.google.com/maps/api/staticmap?&sensor=false&size=250x250&markers=FR|JP|CA
So would there possibly be a way in which I could have a Javascript
function similarly do this (returning my groups of markers), ideally
where perhaps I could simply call my function from some onClick event
using the abbreviated country/state place codes? Like for example
"onClick=myFunction('FR|JP|CA'};" and send those groups to the Geocode
request parameters at -
http://maps.google.com/maps/api/geocode/output?parameters
and then return markers for France, Japan and California?
Because that way then I think I wouldn't have to therefore bother with
updating my .xml file with all my groups.
I could just tie whichever groups I want to the simple Javascript
function for each various onClick event etc.
If anyone has any ideas I really appreciate it.
Thank you