paulp575 wrote

>My preferred method would be to list the categories applicable for each
>marker, for example:
>
>category="ATV"
>category="Motorcycle"

That's not going to work with XML Attributes, because you can't have two
Attributes with the same name.

You could write
  category1="ATV" category2="Motorcycle"

Or write
  categories="ATV,Motorcycle,4x4"
and parse the list in Javascript with
  categoryArray = categories.split(",")
which copes with any number of categories

Or you could write
  <marker ...>
    <category>ATV</category>
    <category>Motorcycle</category>
    <category>4x4</category>
  </marker>
and obtain the list of categories with
  markers[i].getElementsByTagName("category")
but that's more complicated, makes your XML file larger and doesn't give
any advantages over the  categories="ATV,Motorcycle,4x4"  method.

-- 
Mike Williams

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