Prathamesh Talathi
Prathamesh Talathi

Reputation: 195

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.

Upvotes: 0

Views: 693

Answers (1)

Prathamesh Talathi
Prathamesh Talathi

Reputation: 195

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.

Upvotes: 1

Related Questions