Hi,
I came across few example where you can select several building in the view with holding down the ctrl button on the keyboard.
one example The VirtualCityMAP ( https://berlin.virtualcitymap.de/ )
I have been trying to write a similar code to use for my data and be able to select several buildings, but just couldn't figure it out.
can someone help me out with this?
I have the code to change the color of the first selected building, but now have to add entities :
var scene = viewer.scene;
var handler = viewer.screenSpaceEventHandler;
handler.setInputAction(function(click) {
var pickedObject = scene.pick(click.position);
if (Cesium.defined(pickedObject) ) {
highlightedEntity = pickedObject.id;
console.log (pickedObject.id);
} else{
highlightedEntity = undefined;
}
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
after the selection of several buildings, I'd like to run an sql query on the selected entities.
Thank you