The property is zIndex (note the capital I):
http://code.google.com/apis/maps/documentation/v3/reference.html#MarkerOptions

Cheers
Ben

On Wed, Apr 14, 2010 at 10:18 AM, ramasaig <[email protected]> wrote:

> I'm trying to ensure that custom markers being displayed at the same o-
> ordinates are shown in a specified  z order.  To avoid overlap, some
> markers have a longer 'pin' so that they appear above others (ie.
> further north)  I want to avoid the 'pin' on the icon overlying the
> other icon.
> I've followed (I hope) examples in the Google API V3, but nothing I do
> is changing the z order of markers.
>
> I'm creating the marker as follows:
> ...
>                                var marker = new google.maps.Marker (
>                                        posn, {
>                                        title: title,
>                                        icon: icon,
>                                        desc: desc,
>                                        draggable: false,
>                                        zindex: zInd
>                                });
>                                GEvent.addListener(marker, "click",
> function() {
>                                        marker.openInfoWindowHtml(desc);
>                                });
> ...
> The required value of zindex IS being captured in the value of 'zind',
> but it's not getting into the marker (or if it is, it's not having any
> visible effect.
>
> See http://www.holidaymullandiona.com/maps5/index.php.
> There are two cases there where an 'SC' marker shows above another
> marker.  In the left example the pin of the 'SC' marker can be seen on
> the 'GH' marker below.  In the right example the pin is hidden behind
> the 'BB' marker below.
> This has been achieved by setting the order of creation of the markers
> ( a method not available to me in production).
> All my attempts to change the z order on the fly have failed.
>
> I've seen examples where the variable has an uppercase 'I' ('zIndex')
> instead of 'zindex', but neither work for me.
>
> Can anyone tell me what I've done wrong, please ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to