AnsweredAssumed Answered

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

Question asked by kaden.chen on Sep 7, 2020

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>

 

Outcomes