加载 IconMarkupExtension [英] Loading IconMarkupExtension

查看:25
本文介绍了加载 IconMarkupExtension的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 3D 查看器中的对象顶部添加带有文本的标签.我发现了以下有关执行此操作的扩展程序的帖子:

Trying to add labels with text on top of the objects in 3D viewer. I found the following post about an extension that does this:

https://twitter.com/augustomaia/status/1205652823733460993

viewer.loadExtension('IconMarkupExtension', {
  icons: [
    { dbId: 987,label: '300C',css:'fas fa-thermometer' }
  ]
});

加载这个扩展,产生以下错误:

Loading this extension, produces the following error:

未找到扩展:IconMarkupExtension.是否已注册?"

"Extension not found: IconMarkupExtension. Has it been registered?"

这是官方扩展的一部分吗?或者在某些代码示例中是否有类似的功能可用如何进行这样的扩展,将文本标签添加到带有 dbid 和 label 的对象顶部?

Is this part of the official Extensions? Or is there similar functionality available in some code example how to make extension like this that would add the text label on top of the object with dbid and label?

推荐答案

这是一个自定义扩展,仍在进行中,但您可以查看 这个repo.

It's a custom extension, still a work in progress, but you can check at this repo.

这篇关于加载 IconMarkupExtension的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆