mirror of
https://github.com/BlueMap-Minecraft/BlueMapWeb.git
synced 2024-11-28 04:45:13 +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) {
|
||||
if (this.fadeDistanceMax === Number.MAX_VALUE && this.fadeDistanceMin <= 0){
|
||||
this.element.style.opacity = undefined;
|
||||
this.element.parentNode.style.opacity = undefined;
|
||||
} 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