Google maps layer zIndex #29

Closed
safar opened this Issue Aug 2, 2012 · 7 comments

Comments

Projects
None yet
6 participants
@safar

safar commented Aug 2, 2012

Hi again,

I'm currently having an issue with google maps tile layer. I'm using danzel's Leaflet.markercluster plugin to cluster and display my markers.

Problem is that google maps layer displays on top of marker layer so it renders the map unusable because it's impossible to click on markers.

When I select different tile layer (e.g. Bing layer or OSM) markers are displayed as intended on top of the tile layers. But if google maps tile layer is selected it's again displayed above all else.

Is it possible to move google tile layer to front or to back by some method? I've tried bringToFront() but L.Google doesn't have that method.

I'm sorry that I cannot give you a link to my webpage for security reasons to see it for yourself.

@DBalashov

This comment has been minimized.

Show comment Hide comment
@DBalashov

DBalashov Aug 2, 2012

is this issue #30 related to you problem?

is this issue #30 related to you problem?

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Aug 2, 2012

I have the same issue with my WMS layer that does not show over Google Satellite layer... My WMS layer is shown correctly over OSM layer but disappear when switching to Google layer... This was working fine with some old version of Leaflet. I'm trying to use the latest Leaflet js/css (0.4.2)

Thanks a lot

ghost commented Aug 2, 2012

I have the same issue with my WMS layer that does not show over Google Satellite layer... My WMS layer is shown correctly over OSM layer but disappear when switching to Google layer... This was working fine with some old version of Leaflet. I'm trying to use the latest Leaflet js/css (0.4.2)

Thanks a lot

@DBalashov

This comment has been minimized.

Show comment Hide comment
@DBalashov

DBalashov Aug 2, 2012

I think you can use Chrome or Firefox (with developer toolbar) for looking elements and check z-index of this elements.

I think you can use Chrome or Firefox (with developer toolbar) for looking elements and check z-index of this elements.

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Aug 2, 2012

I just try adding this line:

$("#" + this._container.id).css("z-index", "auto"); // fixed z-index of yandex maps

like you suggested in issue:30 and it solve my problem

Thanks a lot

ghost commented Aug 2, 2012

I just try adding this line:

$("#" + this._container.id).css("z-index", "auto"); // fixed z-index of yandex maps

like you suggested in issue:30 and it solve my problem

Thanks a lot

@DBalashov

This comment has been minimized.

Show comment Hide comment
@DBalashov

DBalashov Aug 2, 2012

:)))))))

:)))))))

@shramov shramov closed this in b4d8e70 Aug 2, 2012

@shramov

This comment has been minimized.

Show comment Hide comment
@shramov

shramov Aug 2, 2012

Owner

Thanks for the fix

Owner

shramov commented Aug 2, 2012

Thanks for the fix

@gridcell

This comment has been minimized.

Show comment Hide comment
@gridcell

gridcell Nov 1, 2012

This fixed my problem as well but I'm finding vector layers fall under the google layer in IE7. Does this happen to anyone else?

gridcell commented Nov 1, 2012

This fixed my problem as well but I'm finding vector layers fall under the google layer in IE7. Does this happen to anyone else?

@DGuidi

This comment has been minimized.

Show comment Hide comment
@DGuidi

DGuidi Nov 28, 2012

I'm experiencing this issue (marker behind google layer) only with IE7 :(

DGuidi commented Nov 28, 2012

I'm experiencing this issue (marker behind google layer) only with IE7 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment