I have been trying everything I can to figure out how I can use several different marker images, each would be used based on the match to an attribute in the marker attributes being passed via xml.
I have several store types, each marker in my locations.xml document has an attribute of type. I have tried setting that attribute to a number or string and have not been able to use any type of logic in the jquery.storelocator.js file to assign the custom icons based on the value of the attribute.
I have tried conditional logic based on the attribute value, if statements, if/else statements, case statements and have not been able to get this working.
I have been trying everything I can to figure out how I can use several different marker images, each would be used based on the match to an attribute in the marker attributes being passed via xml.
I have several store types, each marker in my locations.xml document has an attribute of type. I have tried setting that attribute to a number or string and have not been able to use any type of logic in the jquery.storelocator.js file to assign the custom icons based on the value of the attribute.
I have tried conditional logic based on the attribute value, if statements, if/else statements, case statements and have not been able to get this working.
Any advice would be greatly appreciated.