you can have the value in the type field be the name of the colored marker image.
lets say you want to have blue and red colored markers. in the type field specify either blue or red for the value. then have two colored icon images files, one labeled blue.gif and another named red.gif. in your coded before creating the marker define the icon value by concatenating the type value with .gif and pass that into function that add the marker to the map. On Nov 5, 9:07 am, Irishman2020 <[EMAIL PROTECTED]> wrote: > http://code.google.com/apis/maps/articles/phpsqlsearch.html > I followed this tutorial to a T, but I was wanting to add different > colored markers for different types of locations. I have the table > laid out exactly as they described, with an addition of a "type" field > (you can see that in the image of the import that they had shown, but > they didn't put this in the tuturial for some reason...). I would > like to have 2 different types with 2 different colored markers, the > simpler I can code this the better, as I'm not an experienced coder. > How can I make 2 different entries in the "type" field produce 2 > different colored markers? If you could post the code and where it > would fit in the example on the link above, I would appreciate it. I > am not able to host the actual code I have at this time, as my hosting > site is down. I'm having to test this on localhost until I can re- > host it again. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
