加载IconMarkupExtension [英] Loading IconMarkupExtension

查看:99
本文介绍了加载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?

推荐答案

这是一个自定义扩展程序,仍在开发中,但是您可以在

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

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

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