Created
May 23, 2017 14:45
-
-
Save matthieu-D/179a91dc1c24ff7e951bf188d7e41cfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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