[英]Structure of MarkerList array in Wikitude Javascript SDK
WikiTude增强现实JavaScript SDK具有一个名为markerList的标记数组。 我想知道数组的结构是什么(在文档中没有)。 例如,我想知道如何访问标记列表中的geoObject的enabled属性。
举个例子,
World.markerList[i].enabled=false
标记列表数组的结构和子结构是什么?
我可以喜欢以下内容吗? 请帮忙。 我真的被困在这里。 我不想每次更改自定义滑块时都重新加载并重新创建POIS。 我希望激活和禁用GeoOjects,以防止闪烁。
marker.js
// Labels and properties described here.
this.markerObject = new AR.GeoObject(markerLocation, {
drawables: {
cam: [this.markerDrawable_idle,this.markerDrawable_selected,this.titleLabel,this.distanceUpdate,this.descriptionLabel],
enabled : true,
indicator: this.directionIndicatorDrawable,
radar: this.radardrawables
}
});
this.markerObject.changeVisibilitysetter= function(markerObject) {
this.markerObject.enabled = false;
}
然后从fromwebservice调用函数
World.changeVisibilitysetter(marerList[i].markerObject);
数组中的元素类型为“标记”。 这样的标记没有启用的属性。 您需要使用这样的setter扩展类,并在实现中访问基础的AR.GeoObject并更改其enabled属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.