I have subsequently changed the variable back to zIndex (with uppercase 'I'), but to no avail.
Tim On Apr 14, 1:46 am, Tim Dawson <[email protected]> wrote: > Hello Ben, > > Yes, I tried zIndex first, and it didn't work. There are examples (in the > forum) where it's > shown as 'zindex', so I tried that too. That doesn't work for me either. > > Everything else in my script works as intended, it's very frustrating ! > > Tim > > > > Ben Appleton wrote: > > The property is zIndex (note the capital I): > >http://code.google.com/apis/maps/documentation/v3/reference.html#Mark... > > > Cheers > > Ben > > > On Wed, Apr 14, 2010 at 10:18 AM, ramasaig <[email protected] > > <mailto:[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. > > > Seehttp://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] > > <mailto:[email protected]>. > > To unsubscribe from this group, send email to > > [email protected] > > <mailto: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. > > -- > Tim Dawson > Maolbhuidhe > Fionnphort > Isle of Mull PA66 6BP > > 01681 700718 -- 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.
