Im using version 1.7.1
**I need to show menu of 3 items in the menu when the user do right click on some point of intrest on the map. **
I can’t find any example of how to do it.
**Any help please … **
**10x **
Im using version 1.7.1
**I need to show menu of 3 items in the menu when the user do right click on some point of intrest on the map. **
I can’t find any example of how to do it.
**Any help please … **
**10x **
You can implement using a ScreenSpaceEventHandler.
var handler = new Cesium.ScreenSpaceEventHandler(canvas);
handler.setInputAction(function(movement) {
console.log(movement.position); // position of click
}, Cesium.ScreenSpaceEventType.RIGHT_DOWN);
``
Thanks,
Gabby
The event i already catch - but popup menu i can’t
How to popup the menu that i hold ?
You probably don’t want to use Cesium to pop up additional menus, you probably want to use a separate HTML element. In that case, there are web development and JavaScript forums that can help you with that.