Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created May 23, 2017 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/179a91dc1c24ff7e951bf188d7e41cfa to your computer and use it in GitHub Desktop.
Save matthieu-D/179a91dc1c24ff7e951bf188d7e41cfa to your computer and use it in GitHub Desktop.
this.markerDrawable = new AR.ImageDrawable(World.markerDrawableIdle, 2.5, {
zOrder: 0
});
this.descriptionLabel = new AR.Label(poiData.shortDescription, 1, {
zOrder: 1,
translate: {
y: -0.55
},
style: {
textColor: '#FFFFFF',
fontStyle: AR.CONST.FONT_STYLE.BOLD
}
});
this.directionIndicatorDrawable = new AR.ImageDrawable(World.markerDrawableDirectionIndicator, 0.1, {
verticalAnchor: AR.CONST.VERTICAL_ANCHOR.TOP
});
this.markerObject = new AR.GeoObject(this.markerLocation, {
drawables: {
cam: [this.markerDrawable, this.descriptionLabel],
indicator: this.directionIndicatorDrawable
}
});
this.initAnimations();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment