diff --git a/public/static/img/num_bg.png b/public/static/img/num_bg.png new file mode 100644 index 0000000..86f90c8 Binary files /dev/null and b/public/static/img/num_bg.png differ diff --git a/public/static/qm/MainMap_QM.js b/public/static/qm/MainMap_QM.js index 78fb1ed..f2053c5 100644 --- a/public/static/qm/MainMap_QM.js +++ b/public/static/qm/MainMap_QM.js @@ -5774,12 +5774,17 @@ Facilities_QM.prototype.renderIcon = function (obj, _this, isShow = true, ele = _this.serObj.add(sprite); if (obj.facCode == "dt") { let shopDiv = document.createElement('div'); - shopDiv.className = "map_label" - shopDiv.innerText = obj.title; + let sc = document.createElement('div'); + sc.style.position = "relative" + sc.style.display = "flex"; + sc.style.width = "47px"; + sc.style.justifyContent = "center"; + sc.innerHTML = `${obj.title}`; + shopDiv.append(sc); shopDiv.dataset.name = obj.title; shopDiv.dataset.nameEn = Map_QM.util.iconEn[obj.title]; let shopLabel = new THREE.CSS2DObject(shopDiv); - shopLabel.position.set(obj.x, -1 * obj.y, 0); + shopLabel.position.set(obj.x, -1 * obj.y, 110); shopLabel.userData.mapShow = true; _this.labelObj.add(shopLabel); }