Browse Source

fix: 地图设施名称

v1.0.1
高志龙 3 years ago
parent
commit
0753c172a6
  1. 5
      public/static/qm/MainMap_QM.js

5
public/static/qm/MainMap_QM.js

@ -3769,7 +3769,7 @@ MainMap_QM.prototype = {
let sers = Map_QM.mapArr[bd][floorOrder].serObj.children; //服务图标
for (let n = 0; n < sers.length; n++) {
if (sers[n].type == "Sprite") {
let title = sers[n].userData.title;
let title = sers[n].userData.title || Map_QM.util.getFacName(sers[n].facCode);
let titleEn = Map_QM.util.iconEn[title];
let type = sers[n].facCode;
let imgUrl = sers[n].imgUrl;
@ -3793,7 +3793,7 @@ MainMap_QM.prototype = {
let sers = Map_QM.mapArr[j][i].serObj.children; //服务图标
for (let n = 0; n < sers.length; n++) {
if (sers[n].type == "Sprite") {
let title = sers[n].userData.title;
let title = sers[n].userData.title || Map_QM.util.getFacName(sers[n].facCode);
let titleEn = Map_QM.util.iconEn[title];
let type = sers[n].facCode;
let imgUrl = sers[n].imgUrl;
@ -5723,6 +5723,7 @@ Facilities_QM.prototype.renderIcon = function (obj, _this, isShow = true, ele =
sprite.userData.use = ele ? "2d" : "all";
sprite.userData.model = ele;
sprite.userData.src = url;
sprite.userData.title = obj.title;
sprite.position.set(obj.x, -1 * obj.y, Math.max(55, parseInt(obj.site) || 0));
sprite.renderOrder = 300;
sprite.visible = isShow;

Loading…
Cancel
Save