Permalink
Browse files

yandex, google: Fix zIndex issues (fixes #29 #30)

  • Loading branch information...
1 parent df19d88 commit b4d8e70952ea00f09a412ef957d83b2193b7a062 Pavel Shramov committed Aug 2, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −1 layer/tile/Google.js
  2. +1 −0 layer/tile/Yandex.js
View
@@ -82,7 +82,8 @@ L.Google = L.Class.extend({
if (!this._container) {
this._container = L.DomUtil.create('div', 'leaflet-google-layer leaflet-top leaflet-left');
- this._container.id = "_GMapContainer";
+ this._container.id = "_GMapContainer_" + L.Util.stamp(this);
+ this._container.style.zIndex = "auto";
}
if (true) {
View
@@ -74,6 +74,7 @@ L.Yandex = L.Class.extend({
if (!this._container) {
this._container = L.DomUtil.create('div', 'leaflet-yandex-layer leaflet-top leaflet-left');
this._container.id = "_YMapContainer_" + L.Util.stamp(this);
+ this._container.style.zIndex = "auto";
}
if (this.options.overlay) {

0 comments on commit b4d8e70

Please sign in to comment.