Place an Icon at a specific coordinate on a scene3d

414
2
Jump to solution
12-22-2022 12:33 PM
AbishekSrikaanth
New Contributor II

How can I place an Icon at a specific coordinate on a scene3d. Do I need to add a layer and then add an image. I am newbie. So just wondering how it should be done. I tried to look at the docs, but not quite sure if I figured out how to do it.

 

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

Hey @AbishekSrikaanth,

Yes you need a layer for this. There are several way to do this, but the easiest way is to create a client side GraphicsLayer. Then you need to create a Graphic where you define the location and the source of the image. 

I prepared a codepen example so it's easier to understand: https://codepen.io/dlaumer/pen/oNdqdwd

I hope this helps, otherwise feel free to ask again!

Best, Daniel

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable

Hey @AbishekSrikaanth,

Yes you need a layer for this. There are several way to do this, but the easiest way is to create a client side GraphicsLayer. Then you need to create a Graphic where you define the location and the source of the image. 

I prepared a codepen example so it's easier to understand: https://codepen.io/dlaumer/pen/oNdqdwd

I hope this helps, otherwise feel free to ask again!

Best, Daniel

0 Kudos
AbishekSrikaanth
New Contributor II

Thanks a lot for the clarification and also the sample code. I really appreciate it.

 

0 Kudos