Owkay I switched to V3. The only thing I'm not able to fix is hoe to
call a javascript with a different argument from the differen markers
I have.

I have an Array koffie like this:
[title,lat,long,zindex,icon,id]

At the event Listener I get the id from the array (koffie[5]);
But all markers use the last Id that's taken from the array. So for
example I have 2 markers. One with id=1 one with id=2.
Both markers call the javascript with id=2?
What can I do about this?

CODE:
for (var i = 0; i < locations.length; i++) {
                var koffie = locations[i];

                var myLatLng = new google.maps.LatLng(koffie[1], koffie[2]);
                var marker = new google.maps.Marker({
                        position: myLatLng,
                        map: map,
                        shadow: shadow,
                        icon: image,
                        shape: shape,
                        title: koffie[0],
                        zIndex: koffie[3]
                });
                google.maps.event.addListener(marker, 'click', function() {
                        changeLyr("google",koffie[5]);
            });
          }
        }



On 25 nov, 14:58, "[email protected]" <[email protected]> wrote:
> On Nov 25, 4:49 am, Joost van der Steen <[email protected]>
> wrote:
>
> > Sorry but I don't get it..
> > How do I change the direction of the line. I've just drawn two forms
> > one going CW the other CCW but this didn't did the trick?
>
> You might look at the v3 API. Making holes in polygons there does not
> depend on the 
> ordering:http://www.geocodezip.com/v3_polygon_example_donut.htmlhttp://www.geocodezip.com/v3_polygon_example_donutA.html
> (more examples athttp://www.geocodezip.com)
>
>   -- Larry
>
>
>
> > On 25 nov, 00:21, Andrew Leach <[email protected]> wrote:
>
> > > On 24 November 2010 22:12, Joost van der Steen <[email protected]> 
> > > wrote:
>
> > > > But when I run this in Safari the hole is gone?
> > > > Is there a way to work around this? I've read all different kind of
> > > > discussions about it but none of them seem to have the answer.
>
> > > You do have to know what to search 
> > > for.http://groups.google.com/group/google-maps-api/search?hl=en_US&q=enco...
>
> > > Safari calculates its polygons differently, and the direction each
> > > line goes is significant. For a polygon whose outer boundary is
> > > defined clockwise, the inner boundary has to be defined anticlockwise.
>
> > > --
> > > Andrew C Leach
>
>

-- 
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