Drag billboard around?

I am trying to pick and move marker ( a billboard ) around, but I am unable to find a scenario which keep the map still, and prevent propagation of click and mouse move while dragging the marker.
Please share some working example how to do that.

I haven’t tried it myself. Can you post an example of what isn’t working for you? I would assume you need to disable some or all of the handlers in the camera controller, then set up listeners on the screenspace event handler for mouse down, mouse move, and mouse up – there doesn’t seem to be a pre-existing set of “drag” events, so you’ll have to make your own. (Don’t forget to add a mouseleave event for the containing DOM element!)

1 Like

I took a few minutes and whipped up this Sandcastle example – is that what you had in mind?

1 Like

<3 Thank You James_B !! :slight_smile:

1 Like