Start a new topic
Solved

Change text color after click poi marker

Hi, i want to ask. I'am try to develop using GeoLocation Feature (Android Javascript)


The question is i want to change the text color after click the poi

this is my code (marker.js) :


  this is my source : AR.Label

	this.titleLabel = new AR.Label(poiData.title.trunc(12), 0.5, {
		zOrder: 1,
		translate: {
			y: 0.4,
			x: 0.2
		},
		style: {
			textColor: '#333333',
			fontStyle: AR.CONST.FONT_STYLE.BOLD
		},
		onClick: function() {
			this.titleLabel.textColor += '#FFFFFF'
		}
	});

  

Regards,

Indra

1 Comment

i have solved it.

Login or Signup to post a comment