POST
|
Hello, I want to have edit functionality to the attributes in webscene but i am unable to do so ,i tried applyEdit method from arcgis api also 3d editor widget but its not working, kindly please check where i am getting wrong,i had published 3d layer from arcgis pro software and below i am sharing the scene layer associated with feature layer as well as portal id of webscene, Thank you in advance SceneLayer: https://globolive3d.gl3d.in/agserver/rest/services/Hosted/Anupam_Land_Use/SceneServer FeatureLayer https://globolive3d.gl3d.in/agserver/rest/services/Hosted/Anupam_Land_Use/FeatureServer webscene portal ID: 8482745e9d164eb5afb30a2f6cd883b5 Below is my code for 3d editor <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> <title> Edit features in 3D with the Editor widget | Sample | ArcGIS API for JavaScript 4.17 </title> <link rel="stylesheet" href="https://js.arcgis.com/4.17/esri/themes/light/main.css" /> <script src="https://js.arcgis.com/4.17/"></script> <style> html, body, #viewDiv { padding: 0; margin: 0; height: 100%; width: 100%; } .esri-editor .esri-item-list__scroller { max-height: 350px; } #setting { padding: 10px; } </style> <script> require([ "esri/layers/FeatureLayer", "esri/WebScene", "esri/views/SceneView", "esri/widgets/Editor" ], function (FeatureLayer, WebScene, SceneView, Editor) { // Create a map from the referenced webscene item id let webscene = new WebScene({ portalItem: { id: "8482745e9d164eb5afb30a2f6cd883b5" } }); var view = new SceneView({ container: "viewDiv", qualityProfile: "high", map: webscene }); view.when(function () { view.popup.autoOpenEnabled = false; //disable popups // Create the Editor var editor = new Editor({ view: view }); // Add widget to top-right of the view view.ui.add(editor, "top-right"); const satelliteCheckbox = document.getElementById("satellite"); // change event handler to set the basempa accordingly satelliteCheckbox.addEventListener("change", function (event) { view.map.basemap = event.target.checked ? "satellite" : ""; }); // Add the checkbox to the bottom-right of the view view.ui.add("setting", "bottom-right"); }); }); </script> </head> <body> <div id="viewDiv"></div> <div id="editorDiv"></div> <div id="setting" class="esri-widget"> <input type="checkbox" id="satellite" /><label for="satellite" >Show satellite basemap</label ><br /> </div> </body> </html>
... View more
11-13-2020
02:03 AM
|
0
|
0
|
307
|
POST
|
Also When i click the add feature in 3d editor widget ,it show me undefine
... View more
05-15-2020
09:40 PM
|
0
|
0
|
433
|
POST
|
Hello,I tried to integrate 3d editor widget "ArcGIS API for JavaScript Sandbox " in my code but its not working showing warning in chrome dev tool which is [esri.views.3d.layers.graphics.Graphics3DCore] Graphic in layer 17217e39a7c-layer-0 has no symbol and will not render Thank you in advance
... View more
05-15-2020
03:44 AM
|
0
|
1
|
472
|
POST
|
i am getting the below error,Thank you in advance dojo.js:334 [esri.views.3d.state.ViewStateManager] #goTo() Failed to create camera from target, no layerview has been found for the layer
... View more
07-24-2019
12:00 AM
|
0
|
2
|
587
|
POST
|
Thank you so much for your help i managed to solved that error Lance Cole
... View more
07-23-2019
11:53 PM
|
0
|
0
|
704
|
POST
|
Thank you and yes definately i will more clear next time
... View more
07-22-2019
07:47 AM
|
0
|
0
|
704
|
POST
|
can you please explain me with examples Lance Cole as i am still not getting about normalization field
... View more
07-21-2019
11:20 PM
|
0
|
1
|
614
|
Online Status |
Offline
|
Date Last Visited |
04-15-2022
10:26 PM
|