I am not all convinced about this part of your XML parser, to do with
custom icons-
var icon_map = new Array();
icon_map= GXml.value(markers[i].getElementsByTagName("icon_map")
[0]);
No matter that you previously declare icon_map as an array, it won't
stay as one when you assign it like that.
You can't read arrays from XML, only strings. XML is not JSON.
So, if your XML contains something like
<icon_map>49,0,49,1,49, ...
your javascript icon_map variable will be a string "49,0,49,1,49,..."
When you later do
custom_icon.imageMap = icon_map;
it may break (IE) because it expects an array. FF looks to be a bit
smarter and reinterpeting the string as an array. Browsers differ.
You ought to parse that CSV string that you read in, into a proper
array.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---