yenbao1340 / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

PopupMarker doesn't work well with zIndexProcess #130

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

  1. Create a PopupMarker( new GLatLng( 0 , 0) , {
        zIndexProcess : function( overlay ){ return 10000000 }
     });

  2. Check that the popup doesn't have an appropiate zIndex

What is the expected output? What do you see instead?

   The popup should have the same or one zIndex than the marker

What version of the product are you using? On what operating system?

   PopupMarker 1.0
   Ubuntu Jaunty
   Firefox 3.1

Please provide any additional information below.

    Here is a quick fix

    Substitute ( it appears twice in initialize and redraw )
    ----------------------------------------------------------------------
    this.container_.style.zIndex = GOverlay.getZIndex( this.latlng_.lat() );

    With
    -----------------------------------------------------------------------
    this.container_.style.zIndex = 
    ( this.opts_.zIndexProcess ? 
      this.opts_.zIndexProcess( this ) : 
      GOverlay.getZIndex( this.getLatLng().lat() ) 
    ) + 1;

Original issue reported on code.google.com by monvilla...@gmail.com on 14 Jul 2009 at 8:51

GoogleCodeExporter commented 8 years ago
Assigning to Masashi to take a look.

Original comment by pamela.fox on 14 Jul 2009 at 9:54

GoogleCodeExporter commented 8 years ago
Ok

Original comment by wf9a5...@gmail.com on 15 Jul 2009 at 12:00

GoogleCodeExporter commented 8 years ago
The PopupMarker is updated to verion 1.1.
It fixed this issue and some bugs.
And it support work with GMarkerManager.

>monvillalon
Thank you for your good advice.

Original comment by wf9a5...@gmail.com on 16 Jul 2009 at 6:37

GoogleCodeExporter commented 8 years ago
This is now in release:
http://gmaps-utility-
library.googlecode.com/svn/trunk/popupmarker/1.1/examples/chartpopupmarker_with_
markerm
anager.html

Original comment by pamela.fox on 29 Jul 2009 at 4:53