Start a new topic

Show different image on different pois

Show different image on different pois


hello

           i want to show different image on different pois

Hi,

For your use case - displaying POIs and specific data for each of those, then those samples should be what you're looking for:

Point of Interest

Retrieving POI data

Browsing POIs

You can work with the documentation together with the sample app to get details and see how the code works.

Greetings

Nicola

hello 

       thanx

            BUT I WANT TO SHOW DIFFERENT IMAGE ON EACH POIS

We don't have a specific sample for this. Saying this the best is to check the Browsing POIs samples - in detail the marker.js which shows how you can define the details for the POI markers. You'll need to store/retrieve the images for each POI in the json.

Greetings

Nicola

World.markerDrawable_idle = new AR.ImageResource("http://192.168.1.78/api/images/elf.png");

World.markerDrawable_selected = new AR.ImageResource("http://192.168.1.78/api/images/elf.png");

World.markerDrawable_directionIndicator = new AR.ImageResource("http://192.168.1.78/api/images/elf.png");

 

all images comes from json and i want to show different image on different marker

Hi,

The code snippet seems to be dealing with the marker images themselves. You'll need to create an additional ImageResource file and handle it accordingly in the .js file you use to define the markers and the elements that should be displayed on the markers.

I hope this helps. Greetings

Nicola

Hi Deepak,

did you find any solution for this? Can you please post.
Login or Signup to post a comment