File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1217,6 +1217,12 @@ ClusterIcon.prototype.useStyle = function() {
1217
1217
} else if ( this . cluster_ . isBuzzed ) { /* cluster url hack for buzzed cluster */
1218
1218
this . url_ = style [ 'url' ] . replace ( / b a l l o o n \. / , 'buzzed-balloon.' ) ;
1219
1219
}
1220
+
1221
+ /* Cluster zIndex hack */
1222
+ if ( style [ 'zIndex' ] ) {
1223
+ this . zIndex_ = style [ 'zIndex' ] ;
1224
+ }
1225
+
1220
1226
} ;
1221
1227
1222
1228
@@ -1241,6 +1247,10 @@ ClusterIcon.prototype.createCss = function(pos) {
1241
1247
style . push ( 'background-image:url(' + this . url_ + ');' ) ;
1242
1248
var backgroundPosition = this . backgroundPosition_ ? this . backgroundPosition_ : '0 0' ;
1243
1249
style . push ( 'background-position:' + backgroundPosition + ';' ) ;
1250
+
1251
+ if ( this . zIndex_ ) {
1252
+ style . push ( 'z-index:' + this . zIndex_ + ';' ) ;
1253
+ }
1244
1254
1245
1255
if ( typeof this . anchor_ === 'object' ) {
1246
1256
if ( typeof this . anchor_ [ 0 ] === 'number' && this . anchor_ [ 0 ] > 0 &&
You can’t perform that action at this time.
0 commit comments