On Jan 18, 7:38 pm, can99 <[email protected]> wrote:
> What am I missing been experimenting with it all day, searching here
> all day ( seem to find the answer and then there is a dead link to the
> solution ahhhhh), I cant find an example that uses a search field to
> get the locations on the map.... well one that still has the link to
> the code that was successful there anyway.
>
> The map is here:
>
> http://www.ironhorsetrailers.com/dealerlocator.html
>
> XML is here
>
> http://www.ironhorsetrailers.com/map_genxml.php
>
> What I have done is put a dealer as hq and one as agent, use this tn
> in the search with 200 miles, the Ironhorse HQ should come up with a
> red icon, the others blue.
>
> The database field is setup as named ' flavor ' which has the hq or
> agent in it
>
> What am I missing? Its something silly, or something big.

Your createMarker function is defined like this:
    function createMarker(point, name, company, address, www, phone,
fax, hours, email, type, flavor)

You call it like this:
       var marker = createMarker(point, name, company, address, www,
phone, fax, hours, email, flavor);

the "flavor" information from the xml is in the variable called
"type".  The "flavor" variable inside the createMarker function is
always undefined, so you always get the default marker...

  -- Larry


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