I thought that gicons was just the variable I was defining and it
could be anything at all? then point, icons would call the marker and
make it use the icons variable i'd defined - I'm used to PHP, sorry,
but I'm over my head. I've changed the array to
// Create our colored marker icons
var GIcons=[];
GIcons["red"] = new GIcon("mapicons/marker_red.png");
GIcons["blue"] = new GIcon("mapicons/marker_blue.png");
I've read the reference, really I have, but I really don't understand
it.
The reference says
GMarker(latlng:GLatLng, opts?:GMarkerOptions)
Right, so i'm using
var marker = new GMarker(point, {GIcons:icon});
Google uses this
var marker = new GMarker(point, options);
here
http://googlemapsapi.blogspot.com/2007/03/march-marker-madness-gmarkeroptions.html
I've played with this and I don't see how my code is that far off?
(bangs head on keyboard)
On Apr 17, 8:45 pm, marcelo <[email protected]> wrote:
> On Apr 17, 9:38 pm, e <[email protected]> wrote:
>
> > From the sample code on this page
>
> >http://econym.org.uk/gmap/basic16.htm
>
> > (which is heavily referenced on this group...)
>
> "gicons" in that page is not a magic word, and it is not used the way
> you are using it.
> It is a variable name, and also the page is pretty old, so it is old
> syntax.
>
> When in doubt, always look at the reference first. (same link I posted
> earlier):http://code.google.com/apis/maps/documentation/reference.html#GMarker
>
> Notice that there are two constructors listed.
> The first one is grayed out, which means it is deprecated. You should
> use the second.
>
> --
> Marcelo -http://maps.forum.nu
> --
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---