How can I enable popup in SceneView with a WebScene have a portalItem?

145
1
09-07-2020 08:34 AM
重溪陳
New Contributor II

I created a Web Scene portal item and add a feature layer. I also enable the layer's popups property as below picture.

The popup is not working in below javascript API code. How can I do for let the popup working as protal server Webscene view?

<script src="https://js.arcgis.com/4.16/"></script>

<script>
require(["esri/views/SceneView", "esri/WebScene","esri/config"], function (
SceneView, WebScene, esriConfig) {
var titleDiv = document.getElementById("titleDiv");
esriConfig.portalUrl="https://cit183x.xxx.edu.tw/portal";

var scene = new WebScene({
 portalItem: { id: "540xxx6d5fd432fa4ba3dd64eca801d" }
});

var view = new SceneView({
map: scene,
container: "viewDiv"
});


});
</script>

1 Reply
BrentGrossman
New Contributor II

I'm having the same problem. Is it possible for a WebScene based on a portalItem to show popups? They're definitely enabled on the feature layers, and I can get them to pop up when I open the WebScene in Scene Viewer online.

0 Kudos