是否可以在伪造查看器中自定义图钉图标?这是我在查看器中加载“质量问题”的示例代码。
_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
});});`}
我想将那个图钉圆圈更改为其他图标。我们应该怎么做?