On Feb 17, 12:49 pm, "[email protected]" <[email protected]> wrote: > On Feb 17, 12:40 pm, PEM <[email protected]> wrote: > > > I know I posted this before but it never showed up. > > > Here is the link with the javascript that is supposed to display > > different color markers but I can't get it to work: > > >http://65.213.119.67/GoogleMapsMarkerTest/defaultmapWithColoredMarker... > > Do you know how to see your javascript errors? > > This might explain why you aren't seeing markers: > Error: markerOptionsPurple is not defined > Source > File:http://65.213.119.67/GoogleMapsMarkerTest/defaultmapWithColoredMarker... > Line: 50 > > You declare markerOptionsPurple local to your createMarker function, > but use it outside of that function. It is bad practice to declare > functions local to (inside) other functions (you declare createMarker > inside load).
Another issue you have is while you have defined a createMarker function, you aren't using it; but you are passing arguments to the GMarker constructor as if it was your createMarker function. You are also missing the GMarker constructor from your createMarker function. -- Larry > > > > > > > > > > On Feb 17, 11:56 am, PEM <[email protected]> wrote: > > > > Actually, the link above is to a map that does work, but it only has > > > red markers. > > > > I seem to have just broken my PowerBuilder code that attempts to > > > generate the different color markers. > > > > Will post as soon as I can. > > > > On Feb 17, 11:18 am, PEM <[email protected]> wrote: > > > > > Thanks, Larry. > > > > > Yes, I think the second example is exactly what I would like to > > > > achieve. > > > > > I will take a look to see if this is something I can generate with my > > > > PowerBuilder code. > > > > > Also,Sorry about the code dump. Here is a link to a map that doesn't > > > > render. > > > > >http://65.213.119.67/GoogleMapsMarkerTest/defaultmap.htm > > > > > Best, > > > > > Paul > > > > > On Feb 16, 8:51 pm, "[email protected]" <[email protected]> > > > > wrote: > > > > > > On Feb 16, 2:56 pm, PEM <[email protected]> wrote: > > > > > > > Greetings All, > > > > > > > I am trying to create javascript (programatically) to create a > > > > > > google > > > > > > map that has multiple different colored markers where each marker > > > > > > has > > > > > > its own info window. > > > > > > You mean something like this? > > > > > >http://www.geocodezip.com/v2_basic8h.asp?filename=example_icons.xml > > > > > > or this v3 example? > > > > > >http://www.geocodezip.com/v3_markers_infowindows.html > > > > > > > I think my code sample is V2. I am not sure if I can mix and match > > > > > > V2 > > > > > > and V3. > > > > > > You can't unless you really know what you are doing, and even then it > > > > > is not recommended. > > > > > > > I am a bit confused as to how to achieve this. > > > > > > > Thanks in advance for your help. > > > > > > > A sample map that does NOT render correctly is below. But hopefully > > > > > > you be able to tell what I am trying to accomplish from the > > > > > > javascript. > > > > > > > Currently, the map does not render at all. > > > > > > > Thanks!!!! > > > > > > > Paul > > > > > > A link to a map that doesn't render is better than a code dump of a > > > > > map that doesn't render. > > > > > > -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
