File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
BlueMapCommon/webapp/src/js Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ export class PopupMarker extends Marker {
4343
4444 this . elementObject = new CSS2DObject ( htmlToElement ( `<div id="bm-marker-${ this . data . id } " class="bm-marker-${ this . data . type } ">Test</div>` ) ) ;
4545 this . elementObject . position . set ( 0.5 , 1 , 0.5 ) ;
46+ this . elementObject . disableDepthTest = true ;
4647 this . addEventListener ( 'removed' , ( ) => {
4748 if ( this . element . parentNode ) this . element . parentNode . removeChild ( this . element ) ;
4849 } ) ;
Original file line number Diff line number Diff line change @@ -208,7 +208,8 @@ var CSS2DRenderer = function (events = null) {
208208
209209 for ( var i = 0 , l = sorted . length ; i < l ; i ++ ) {
210210
211- sorted [ i ] . element . style . zIndex = zMax - i ;
211+ let o = sorted [ i ] ;
212+ o . element . style . zIndex = o . disableDepthTest ? zMax + 1 : zMax - i ;
212213
213214 }
214215
You can’t perform that action at this time.
0 commit comments