# About Selecting Problems When Left clicking in CesiumJs

**URL:** <https://community.cesium.com/t/about-selecting-problems-when-left-clicking-in-cesiumjs/20525>\
**Category:** CesiumJS\
**Created:** [September 23, 2022, 3:29am UTC](https://community.cesium.com/t/about-selecting-problems-when-left-clicking-in-cesiumjs/20525 "2022-09-23T03:29:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaoplayer](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/xiaoplayer/32/3476_2.png) [@xiaoplayer](https://community.cesium.com/u/xiaoplayer)\
**Post date:** [September 23, 2022, 3:29am UTC](https://community.cesium.com/t/about-selecting-problems-when-left-clicking-in-cesiumjs/20525/1 "2022-09-23T03:29:07Z")

</div>

Hi everyone，First Set the tilt angle of the map, click on each graph, and you will find that the selected graph is not the clicked graph. This phenomenon occurs in the latest version.  
If you find any such problems, please comment. Thank you！  
code：

```
      function add() {
        let _handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
        _handler.setInputAction(function (e) {
            let pick = viewer.scene.pick(e.position);
            if(pick&&pick.id){
                let entity = pick.id;
                if(entity.options){
                    console.log(entity.options.id);
                }
                
            }
            
        }, Cesium.ScreenSpaceEventType.LEFT_CLICK);

            //Ellipse
        viewer.entities.add({
            position: Cesium.Cartesian3.fromDegrees(125.9678, 43.7743,1000),
            options:{id:"ellipse"},
            ellipse: {
                semiMinorAxis: 61.0,
                semiMajorAxis: 90.0,
                material: Cesium.Color.YELLOW.withAlpha(0.9),                    
            }
        });

        viewer.entities.add({
        options:{id:"rectangle"},
        rectangle: {
            coordinates: Cesium.Rectangle.fromDegrees(125.9667, 43.7728, 125.9691, 43.7733),
            material: Cesium.Color.RED.withAlpha(0.5),
            outline: true,
            outlineColor: Cesium.Color.RED
        }
    });

    var redPolygon = viewer.entities.add({
        options:{id:"polygon"},
        polygon: {
        hierarchy: Cesium.Cartesian3.fromDegreesArray([
        125.9665,
        43.7720,
        125.9694,
        43.7721,
        125.96981953436234,
        43.7716,
        125.9663,
        43.7716,
        ]),
        material: Cesium.Color.GREEN,
        },
        });
        
    }

```

 ![11111](https://global.discourse-cdn.com/cesium/original/3X/e/4/e44ccb46b71b5ad5fd0965a0a21971fb932c29b4.jpeg)
