Esri / oriented-imagery

Find developer resources for Oriented Imagery, including a Web AppBuilder widget and oriented imagery catalog (OIC) schema.
Apache License 2.0
41 stars 19 forks source link

Green diamond indicator becomes invisible underneath 3D objects #15

Open AlexanderPoone opened 4 years ago

AlexanderPoone commented 4 years ago

Well this issue is not directly a bug on Oriented Imagery, but it will make the feature unusable. I know it is related to the JavaScript API.

If you have some 3D models on the scene - whether it is of type 3DObject I3S, Mesh I3S or BIM - and you Alt-Click on the map, the green diamond indicator is completely invisible. This is not related to opacity. You can reproduce this having a 3D model of opacity 0.1.

The same happens if you turn on the Current coverage and Additional coverage frustums. The green diamond is masked.

AlexanderPoone commented 4 years ago

I suggest changing Widget.js:

                    this.diamondSymbol = {
                        type: "point-3d",
                        symbolLayers: [{
                            type: "object",
                            anchor: "bottom",
                            heading: 45,
                            size: 8,
                            resource: {
                                primitive: "diamond"
                            },
                            material: {
                                color: "greenyellow"
                            }
                        }]
                    };

and Widget.js showPointOnMap():

                            if (this.graphicsLayer.graphics.items[v].symbol.type === "point-3d") { // if (this.graphicsLayer.graphics.items[v].symbol.style === "diamond") {
                                var graphic = this.graphicsLayer.graphics.items[v].clone();
                                graphic.geometry = geometry;
                                this.graphicsLayer.remove(this.graphicsLayer.graphics.items[v]);
                                this.graphicsLayer.add(graphic);
                                break;
                            }
AlexanderPoone commented 4 years ago

Not yet fixed