Start a new topic

long click on drawables

hi there, is there a way to change click event to a long presse or long click event???
i wrote in a topic that is possible to manipulate the click behavior by Date.now() ????

any idea???


Hello Mohamed,

Unfortunately this is not supported with our Javascript SDK.

Thanks
Eva

 

is there any way to work it arround?? like two clicks or any event similar to long click??

Hello Mohamed,

Unfortunately there is no way to work around that. Our internal onClick callbacks will just fire straight away every time a use clicks something.

Thanks
Eva

 

thanks Eva got it! 

i have another thing in mind to work it around!! is it possible to add a label to the indication blue arrow in your samples?? like adding the name of POI under the indicator??

Hello Mohamed,

Yes this is possible. Please refer to this example for more information on how to do that.

Thanks
Eva

 

yes eva i seen the example and i tried this

 

 this.markerObject = new AR.GeoObject(markerLocation, {
        drawables: {
            cam: [this.markerDrawable_idle, this.markerDrawable_selected, this.titleLabel, this.descriptionLabel],
            indicator: [this.directionIndicatorDrawable, this.titleLabel],
            radar: this.radardrawables
        }
    });

 but did not work??

Although you can reuse ImageResources, you have to create new drawables for every use. Please try creating a new AR.Label and position it similar to the directionIndicatorDrawable.


Hope this helps.
Best regards,

Andi

Login or Signup to post a comment