Right. Well, I have to admit that I am a bit lost here.

I am having trouble figuring out if createMarker is a built-in
function for the api and that you can overload or just something that
you make up from scratch.

I am actually flailing around quite a bit. Trying this, trying that. I
have looked at many examples and tried to digest the specifications.
But the Google Maps JavaScript API V2 Reference doesn't have examples
so it is slow going for me.

I 'see' in the reference that there is a GMarker constructor but I
have no idea as to how to invoke it.

What do you think, Larry, am I closing in on this or completely
lost? :)

Thanks!!

Paul

On Feb 17, 4:09 pm, "[email protected]" <[email protected]>
wrote:
> 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.

Reply via email to