On Nov 25, 8:26 am, "[email protected]" <[email protected]> wrote:
> hello there,
>
> i have a problem, i greated a map in google maps for my website, but i
> can't assign different letters to each map marker, for example:
> marker1 = "A", markerr2 = "B", marker3 = "C" etc...
>
> here is an example of my asp code of what i did so far with my map,
> run the code to see my map markers, you will see there is about 45 map
> markers and i tried to assign a map marker to a letter, but all map
> markers have now the same letter..
>
> here is my full code:

Aargh. Do NOT post vast swathes of code. Post a link. Read the posting
guidlines.

> i am very new at this and would appreciate it very much if someone can
> help me
> thank you!!

Currently it looks like it's doing exactly what you're telling it to.
Every marker is constructed using the function createInfoMarker(), and
that fixes the icon image as yellow_markerA.png.

If you want different marker images, you need to vary that image
specification every time you call the function. You could do that by
passing in another argument of the letter you want (call it, say,
"letter") and then construct the image name as "yellow_marker"+letter
+".png"

Of course, reading code isn't nearly as easy as running it in a
browser with proper debugging software, so I may have analysed it
wrong.

Andrew

--

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