Mars3D中infoBox的控制

点击模型经常会弹出这样一个弹窗

1.怎样关闭呢?

config.json中 control 设置infoBox:false

2. 这个弹窗有事件吗?

infoBox是cesium原生的,不好控制,如果要自定义建议click事件自己弹窗方便些,属性都在click事件的event.graphc.attr中

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
infoBox.js是一个JavaScript库,用于创建和管理信息框(InfoBox)的显示。通过引用该库,可以在网页使用InfoBox对象来显示自定义的信息框。 在infoBox.js库,存在一个名为getContent的方法,它返回InfoBox的内容,即信息框显示的文本内容。这个方法的定义如下:InfoBox.prototype.getContent = function () {}。 另外,在infoBox.js库还有一个名为getZIndex的方法,它返回InfoBox的层级索引(z-index),用于控制信息框在网页的显示次序。这个方法的定义如下:InfoBox.prototype.getZIndex = function () {}。 通过使用这些方法和其他的功能,开发人员可以根据自己的需求定制和操作InfoBox对象,以实现信息框的具体功能和样式。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [百度地图 infobox的使用](https://blog.csdn.net/zcq125521/article/details/88285421)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [google地图 自定义infowindow infobox.js 插件](https://blog.csdn.net/lsh451334122/article/details/53939780)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值