Ok, tried replacing it with (baseIcon) with () and now its saying that (point) is undefined.....
On Nov 6, 1:47 pm, "Caleb Jensen" <[EMAIL PROTECTED]> wrote: > I know that the localhost wont work on the web :) I'm using it locally for > testing as my host is down... but I will try without the "baseIcon". I tried > reading the information on custom icons, but I'll be honest, I'm getting > lost. I'm a very basic coder, and I wasnt able to figure it out. Thank > you! > > > > On Thu, Nov 6, 2008 at 1:44 PM, nimo <[EMAIL PROTECTED]> wrote: > > > Have you looked at the documentation online for custom icons? > > > that was just an idea and not actual code to use. > > > try changing GIcon(baseIcon) to GIcon() > > > the first example will not work, the 2nd one should if you have the > > right location specified, localhost would not work on the web > > > On Nov 6, 11:32 am, Irishman2020 <[EMAIL PROTECTED]> wrote: > > > I attempted to do so, here's the code that I tried: > > > -------------------------------------------------------------------------------- > > > //<![CDATA[ > > > var map; > > > var icon = new GIcon(baseIcon); > > > icon.image = " > >http://www.google.com/intl/en_us/mapfiles/ms/micons/ > > > blue-dot.png" > > > var marker = new GMarker(point, icon); > > > var geocoder; > > > --------------------------------------------------------------------------------- > > > > That gave error: On Line 13: Error: 'baseIcon' is undefined > > > > ****** > > > I also tried " > > > icon.image = "http://localhost/custom_" + type + ".png" > > > > and "dealer" is a type that I have set and I have an icon labeled > > > custom_dealer.png Either one gives the error on Line 13: Error: > > > 'baseIcon' is undefined > > > > On Nov 5, 5:55 pm, nimo <[EMAIL PROTECTED]> wrote: > > > > > something like this should work > > > > > var icon = new GIcon(baseIcon); > > > > icon.image = "http://www.your_domain.com/images/marker_" + type + > > > > ".png"; > > > > var marker = new GMarker(point, icon); > > > > > On Nov 5, 2:11 pm, Irishman2020 <[EMAIL PROTECTED]> wrote: > > > > > > I apologize, but I don't understand the second half of what you said. > > > > > Could you show that in the coding of the example that I posted? I'm > > > > > not very code savvy to be honest.... I'm learning as I go, but it > > > > > helps to have the code shown to me as I dont understand the code very > > > > > much. > > > > > > On Nov 5, 11:25 am, nimo <[EMAIL PROTECTED]> wrote: > > > > > > > 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!- Hide quoted text - > > > > > > > - Show quoted text -- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
