是否可以在伪造查看器中自定义图钉图标? 这是我的示例代码,它在查看器中加载“质量问题”。
_viewer3D.loadExtension('Autodesk.BIM360.Extension.PushPin', extensionOptions)
.then((pushPinExtension) => {
PushPinExtensionHandle = pushPinExtension;
//remove last items collection
pushPinExtension.removeAllItems();
pushPinExtension.showAll();
//get out the data of this pushpin
var labelData = $('#labelPushpinParam').text();
var ItemsFromBIM360API = JSON.parse(labelData);
renderIssues(ItemsFromBIM360API, pushPinExtension);
});
然后renderIssue()函数将在查看器中渲染图钉。
function renderIssues(issues, pushPinExtension) {` issues.forEach(issueData => {
pushPinExtension.createItem({
type: issueData.type,
id: issueData.id,
label: issueData.title,
status: issueData.type + '-' + issueData.status,
position: issueData.location,
objectId: issueData.object_id,
viewerState: issueData.viewerState
});});`}
How pushpins are looking once rendered
我想将图钉圈更改为其他图标。我们该怎么做?