简体   繁体   中英

customize marker layout in wikitude sdk in javascript

I am working on augmented view in android using wikitude-sdk.

I am showing marker on screen. Now I want customize marker view using

    AR.HtmlDrawable

method provided by wikitude-sdk.

can any one have idea about this.

I got success in adding extra info by

this.descriptionLabel = new AR.Label("IT Company, IT Company, IT Company IT Company, IT Company, IT Company", 0.4, {
    zOrder: 1,
    offsetX: 2.55,
    offsetY: 1.22,
    style: {
        textColor: '#FFFFFF',
        fontStyle: AR.CONST.FONT_STYLE.NORMAL
    }
});

adding this code in marker.js

and passing this.descriptionLabel in marker object's cam array to get visible on screen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM