mirror of
https://github.com/BlueMap-Minecraft/BlueMapWeb.git
synced 2024-11-30 22:03:24 +01:00
Fix HTML and POI-Markers covering other markers if out of display-distance. Fixes: BlueMap#358
This commit is contained in:
parent
8173979ed8
commit
831d9185a2
@ -53,9 +53,9 @@ export class HtmlMarker extends Marker {
|
|||||||
|
|
||||||
onBeforeRender(renderer, scene, camera) {
|
onBeforeRender(renderer, scene, camera) {
|
||||||
if (this.fadeDistanceMax === Number.MAX_VALUE && this.fadeDistanceMin <= 0){
|
if (this.fadeDistanceMax === Number.MAX_VALUE && this.fadeDistanceMin <= 0){
|
||||||
this.element.style.opacity = undefined;
|
this.element.parentNode.style.opacity = undefined;
|
||||||
} else {
|
} else {
|
||||||
this.element.style.opacity = Marker.calculateDistanceOpacity(this.position, camera, this.fadeDistanceMin, this.fadeDistanceMax).toString();
|
this.element.parentNode.style.opacity = Marker.calculateDistanceOpacity(this.position, camera, this.fadeDistanceMin, this.fadeDistanceMax).toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user