Hi Raoul,

The quick solution I proposed above works for me in Chrome, Firefox and IE:
http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjZswEM
Are you sure you set the zIndex to 1E9?

Thanks
Ben

On Wed, Mar 2, 2011 at 10:59 AM, Ben Appleton <[email protected]> wrote:

> Hi Raoul,
>
> marker.getZIndex() returns the zIndex that you set on the marker. If you
> have not set a zIndex on the marker, .getZIndex() returns undefined. Inside
> the API, if you have not set a zIndex, we default to a zIndex based on the
> marker's height on screen. That default zIndex logic recently changed which
> may have broken your hover code.
>
> I'll set up a demo page which brings markers to front on hover, to see if I
> can replicate the issue you report.
>
> Thanks
> Ben
>
> On Wed, Mar 2, 2011 at 10:47 AM, Raoul <[email protected]> wrote:
>
>> Hi Ben
>>
>> The quick fix didn't work. The problem seems different.
>> alert( site.marker.getZIndex() ); returns undefined
>> Can it be that getZIndex is no longer available?
>>
>> Kind regards
>>
>> Raoul
>>
>> On 2 Mrz., 00:30, Ben Appleton <[email protected]> wrote:
>> > It looks like you're setting zIndex to 10000 in order to bring a marker
>> to
>> > the front on hover. A recent change increased the range of default
>> marker
>> > z-indices, so 10000 no longer puts the marker in front.
>> >
>> > A quick fix would be to change 10000 to 1E9 (1000000000). A more robust
>> fix
>> > would be to assign z-indices to each marker, so that you do not rely on
>> the
>> > default marker z-indices being small.
>> >
>> > Perhaps to support bring-to-front we need to publish a maximum zIndex or
>> add
>> > an explicit API property like 'bringToFront'.
>> >
>> > - Ben
>> >
>> >
>> >
>> > On Wed, Mar 2, 2011 at 9:22 AM, Raoul <[email protected]> wrote:
>> > > Many Thanks Larry,
>> >
>> > > Specifying v3.1 solves the issue, I will also try the newest versions.
>> >
>> > > Kind regards,
>> >
>> > > Raoul
>> >
>> > > On 1 Mrz., 22:59, "[email protected]" <[email protected]>
>> wrote:
>> > > > On Mar 1, 1:24 pm, Raoul <[email protected]> wrote:
>> >
>> > > > > Until a few days I had no problem using marker.setZIndex to place
>> a
>> > > > > marker in the forground. Today it seems that it doesn't work
>> anymore.
>> > > > > Other functions called at the same time, like marker.setIcon,
>> still
>> > > > > works. Am I the only one having this problem? Was something
>> modified
>> > > > > in the API? If someone could help I would apreciate it alot
>> >
>> > > > Perhaps this is the time to remind you of what the documentation
>> says
>> > > > about not specifying a version:
>> > >http://code.google.com/apis/maps/documentation/javascript/basics.html.
>> ..
>> >
>> > > > + Choosing an API version
>> > > > + The following guidelines apply when choosing the appropriate API
>> > > > version for your Maps API V3 application:
>> > > > + + Production applications should always specify a minor version
>> (eg.
>> > > > 3.2, 3.3, etc.).
>> >
>> > > >   -- Larry
>> >
>> > > > >http://www.raoul-kieffer.net/Italy/Roma/Rome%20Google%20Maps.html
>> >
>> > > > > $( this ).hover(
>> > > > >         function() {
>> > > > >                 if ( site.marker ) {
>> > > > >                         site.marker.setIcon( book.IconSelected );
>> > > > >                         site.marker.setShadow( book.ShadowSelected
>> );
>> > > > >                         site.marker.oldZIndex =
>> > > site.marker.getZIndex();
>> > > > >                         site.marker.setZIndex( 10000 );
>> > > > >                 }
>> > > > >         },
>> > > > >         function() {
>> > > > >                 if ( site.marker ) {
>> > > > >                         site.marker.setIcon( book.Icon );
>> > > > >                         site.marker.setShadow( book.Shadow );
>> > > > >                         site.marker.setZIndex(
>> site.marker.oldZIndex );
>> > > > >                 }
>> > > > >         }
>> > > > > );- Zitierten Text ausblenden -
>> >
>> > > > - Zitierten Text anzeigen -
>> >
>> > > --
>> > > 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.- Zitierten
>> Text ausblenden -
>> >
>> > - Zitierten Text anzeigen -
>>
>> --
>> 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.
>>
>>
>

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