|
POST
|
Thanks for your question! It would help to see a screenshot of the current behavior to better understand what you expect to see instead. I'm assuming the PictureMarkerSymbol is currently shown as a billboarded icon in the 3D scene, this is the default behavior. You can drape them to the ground by changing the elevation info on your GeoJSON layer to mode: "on-the-ground", as explained here: https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html Here are two CodePens showing the difference: Billboard icons https://codepen.io/arnofiva/pen/poOQGoG/1b63bec0e62aa8f79f51064e7a3b360c?editors=1010 Draped icons https://codepen.io/arnofiva/pen/WNgYPYq/f51cf1af782c07af439aa7eed42760a4?editors=1000
... View more
03-23-2023
08:38 AM
|
0
|
2
|
817
|
|
POST
|
Thanks for the detailed description! There are various things that can influence the performance of your animation in 3D. Without seeing the code, I'll list some of the general aspects to check: What mechanism do you use to trigger an update? Make sure to use the browser's built in requestAnimationFrame so you only perform updates when the browser is idle and has time to render it. This will also throttle the number of updates when e.g. panning. The size and complexity of your glb model (textures and triangles) will impact performance, but also make sure you create the PointSymbol3D and Object3DPointLayer instances at the beginning and reuse them in each update step. If you need to recreate them to change properties like the heading, use clone() instead of creating a new instance. This avoids having to reload the glb, even if it is cached. Related to the previous point, that is one of the advantage of using FeatureLayer.applyEdits() over GraphicsLayer. By updating the heading/roll/tilt through attributes and using a RotationVariable for each of the attributes in the renderer, you automatically reuse the symbol. With the latest version of the JavaScript SDK (4.26), instead of using a FeatureLayer, we recommend using a client side stream layer and push updates using StreamLayer.sendMessageToClient(). We've added this capability specifically for situations where you want to update your data very frequently (many times per second). The use case you describe sounds very interesting and we would like to hear more about it, technically but also on a use case level, I'll get in touch via DM.
... View more
03-19-2023
01:16 AM
|
2
|
1
|
1505
|
|
POST
|
After creating and adding a slide (as shown in the sample you refer) to the web scene object, you need to persist the changes. You can use WebScene.save to overwrite an existing one, or WebScene.saveAs to create a new web scene. Note that the user needs to be authenticated to update or create a new web scene (portal item). If not already logged in, the API will automatically prompt for a ArcGIS Online username/password as part of invoking save / saveAs. Hope this helps, please let me know if anything is unclear!
... View more
01-09-2023
09:54 AM
|
0
|
0
|
1006
|
|
POST
|
I don't have a running example of that but yes, if you can extract an SVG, IconSymbol3DLayer should be able to render it.
... View more
12-05-2022
03:13 AM
|
1
|
0
|
1387
|
|
POST
|
Try this: https://codepen.io/arnofiva/pen/ExRONxX It's based on the online documentation, showing how to load and use fonts in label: https://developers.arcgis.com/javascript/latest/labeling/#fonts-for-sceneview CSS @font-face {
font-family: "FontAwesome";
font-style: normal;
font-weight: 400;
font-display: auto;
src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf")
format("truetype");
} JavaScript labelingInfo = [{
labelPlacement: "above-center",
labelExpressionInfo: {
expression: `"\uf024 " + $feature.NAME`
},
symbol: {
type: "label-3d",
symbolLayers: [
{
type: "text",
material: {
color: "black"
},
font: {
family: "FontAwesome, Avenir Next",
weight: "bold"
},
size: 10
}
]}
}];
... View more
12-03-2022
02:30 AM
|
0
|
0
|
1411
|
|
POST
|
Deploying web application, especially for productive use, is a topic for itself. What I understand is that you built a prototype in CodePen and would now like to show it without the code editor etc. What we often do for our demo apps is use GitHub pages. Here is an example I created recently for the European Developer Summit: Source code: https://github.com/arnofiva/euds2022-web-apps Deployed version: https://arnofiva.github.io/euds2022-web-apps/ The repository contains a few projects that I simply exported from CodePen and uploaded directly into the GitHub repository. After enabling pages in the GitHub settings tab, the app becomes available through the github.io domain. You can see how GitHub pages uses my username for the domain and the repository name in the URL. This allows you, for example, to also take advantage of OAuth authentication using your AGOL username. Unfortunately that talk was not recorded and the slides are rather brief. But if you give it a try I would like to hear how it went!
... View more
12-02-2022
08:13 AM
|
0
|
0
|
815
|
|
POST
|
Hi Victor No drawbacks from using WebGL1 now, but you are right the plan is to drop support for it in an upcoming release. We are looking into the issue and trying to find a solution on our side before that happens. Hope this helps, Arno
... View more
10-10-2022
07:44 AM
|
0
|
0
|
2797
|
|
POST
|
Hi Victor, unfortunately we've been seeing the same issues with older MacBooks. It's not reliably reproducible, updating the OS or browser seems to have an effect. Also it's not just our API that's effected, other 3D applications relying on WebGL (e.g. Three.js samples) also show poor performance - usually depending on the complexity of the scene. One workaround for this specific line of hardware appears to be setting the WebGL version to 1, you can do this at the beginning of your application code through https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#forceWebGLContext Let me know if this helps. I'm a big fan of your paraglider app, would be nice to talk about it sometime!
... View more
09-30-2022
11:43 PM
|
1
|
0
|
2841
|
|
POST
|
I don't have a running sample at hand, but I believe you should be able to do something like that using the following: For ImageryLayers: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#fetchImage For TiledImageryLayers: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#fetchPixels Use the extent of the sketched geometry as an input for these methods. As you describe above, you could then for each point / pixel in the response use the geometry engine to determine if it is part of the original geometry. Hope this helps!
... View more
07-28-2022
07:35 AM
|
0
|
0
|
990
|
|
POST
|
Indeed, this is one of the workarounds that might work. I would have to check what the limit on number of unique value infos is for a renderer. We do have some utilities to derive color or symbology, see for example https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedColor One other approach is looping through the data as you describe and generating an Arcade expression out of it. You could then return each value for a given $feature.OSMID and use it in a ClassBreaksRenderer.valueExpression. Again, I'm not sure what the limit on the size of an Arcade expressions is. Let me know if anything is unclear and I am happy to provide a sample! I forwarded the request to the team and will let you know here should we improve the support for this in the API.
... View more
07-28-2022
07:24 AM
|
1
|
0
|
1153
|
|
POST
|
Unfortunately this is not possible at this point using scene layers. Unlike related feature layers, the attribute values used for rendering scene layers are baked into the scene layer cache for performant loading and visualization. Because of that, it is not possible to join scene layers on the fly with an additional feature layer. You can provide additional attribute values for example in the popup when highlighting a specific building if that helps your scenario. I would also be interested in how many buildings your additional data source covers, depending on that there might be other workarounds. We've received this request before and are looking into possible solutions, however I am not able to provide a timeline for this.
... View more
07-27-2022
01:30 AM
|
0
|
1
|
1165
|
|
POST
|
Glad to hear you were able to find the issue. Indeed the Building Viewer makes certain assumptions about the published scene layer. I hope you are able to use the project now for your own data, let me know if you have any further questions!
... View more
06-27-2022
01:57 AM
|
0
|
0
|
1550
|
|
POST
|
By unresponsive, do you mean the UI is not doing anything or you think the floor variable is set and the BuildingSceneLayer does not update? Your understanding is correct and I'd like to help, but it is difficult without being able to debug. Would you be able to share the current project and building scene layer with us?
... View more
06-21-2022
11:55 PM
|
0
|
1
|
1574
|
|
POST
|
Our 2D symbology showing flat icons, lines or CIM as you are using do not support real world sizes unfortunately. We would recommend using volumetric 3D symbology such as ObjectSymbol3DLayer or WebStyleSymbols that also provide out of the box models for vessels. Note that you can combine multiple layers of ObjectSymbol3DLayer primitives in a single point symbol to potentially create more complex, real world sized symbology.
... View more
05-31-2022
01:37 AM
|
0
|
0
|
791
|
|
POST
|
This really depends on the layer type, can provide more information? For example, noncached layers such as feature layers are automatically reprojected for you by the ArcGIS API for JavaScript. Other layer types such as raster or scene layers need to be reprojected and republished first using for example ArcGIS Pro. For more information what coordinate systems are supported in 3D (SceneView) and how they apply to global and local scenes, see the following section: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#supported-coordinate-systems
... View more
05-12-2022
12:59 AM
|
0
|
0
|
567
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-26-2024 02:47 AM | |
| 1 | 05-12-2023 04:27 AM | |
| 1 | 05-12-2023 04:23 AM | |
| 2 | 03-19-2023 01:16 AM | |
| 1 | 12-05-2022 03:13 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-12-2025
11:52 PM
|