|
POST
|
Hi Efim, this is a documentation problem, I'll work on getting this fixed in the next documentation update. Until then, the solution is to pass the AbortSignal in the esriRequest method: // This method fetches tiles for the specified level and size.
// Override this method to process the data returned from the server.
fetchTile: function(level, row, col, options) {
// call getTileUrl() method to construct the URL to tiles
// for a given level, row and col provided by the LayerView
var url = this.getTileUrl(level, row, col);
// request for tiles based on the generated url
return esriRequest(url, {
responseType: "image",
signal: options.signal
}).then(...)
...
} Here's the working sample: https://codepen.io/ralucanicola/pen/abbjwax?editors=1000 Thank you for reporting this!
... View more
11-11-2019
01:10 AM
|
2
|
0
|
849
|
|
POST
|
oh I see, if your z values match the terrain elevation then you could se `elevationInfo.mode = "absolute-height"`. If they don't match then maybe try setting the `elevationInfo.mode = "relative-to-scene"`. That ignores z values and aligns the vertices on your lines to the ground (but also extruded polygons and buildings in case you have that in your scene!).
... View more
11-08-2019
01:29 AM
|
0
|
0
|
1244
|
|
POST
|
ArcGIS Online release is estimated for December 10th, but API official release (final version with patches, documentation site, plugins, typings and other resources) is December 19th.
... View more
11-08-2019
12:47 AM
|
0
|
3
|
4785
|
|
POST
|
Hi Navya, I can't access your service. Do your features come with z values? If you make it public, I can have a look. Generally though, we only align lines with the ground at the point where they have vertices. So to get a better alignment you might also need to densify the vertices. (no need to modify your original data, you can also do it with geometryEngine.densify()). And for more info on different elevation modes you can read about it here: FeatureLayer | ArcGIS API for JavaScript 4.13
... View more
11-07-2019
12:59 AM
|
0
|
2
|
1244
|
|
POST
|
Happy to hear that it works! next is the current development build and it is meant to be used to try out new features and see that they work for your use case. For production ready apps only use the official release version. Once we release in december, next will be the development build reflecting the 4.15 release... Hope this helps, let me know if you have any other questions.
... View more
11-07-2019
12:32 AM
|
0
|
5
|
4785
|
|
POST
|
Hey, You've got a bunch of errors in the code: you should specify the renderer type (I assume it's a SimpleRenderer), then the `defaultSymbol` becomes `symbol`. Your line symbols should have a `line-3d` type, not a `polygon-3d` type. Also it's important that you specify the color, otherwise you won't see anything. Here's how the code would look like with the changes mentioned above: require([
"esri/Map",
"esri/views/SceneView",
"esri/layers/FeatureLayer",
"esri/widgets/Legend"
], function(Map, SceneView, FeatureLayer, Legend) {
var map = new Map({ basemap: "topo-vector", ground: "world-elevation" });
var view = new SceneView({
container: "viewDiv",
map: map,
zoom: 15,
center: [103.805699, 1.276566],
heading: 300,
tilt: 75
});
const options = {
profile: "quad",
cap: "round",
join: "miter",
width: 5,
height: 30,
color: [200, 200, 200],
profileRotation: "all"
};
var renderer = {
type: "simple",
symbol: {
type: "line-3d",
symbolLayers: [
{
type: "path",
profile: options.profile,
width: options.width,
height: options.height,
material: {
color: options.color
},
join: options.join,
cap: options.cap,
anchor: "bottom",
profileRotation: options.profileRotation
}
]
}
};
const PipelineLayer = new FeatureLayer({
url:
"https://services6.arcgis.com/itEfD6Bf5W0iWJuO/arcgis/rest/services/PipeLine1/FeatureServer/0",
elevationInfo: { mode: "relative-to-ground", offset: 3 },
renderer: renderer
});
map.add(PipelineLayer);
});
... View more
11-06-2019
06:23 AM
|
0
|
4
|
1244
|
|
POST
|
This will be fixed in 4.14. See my comment in the other thread: https://community.esri.com/thread/241160-drawing-graphics-in-3d-scene-over-180th-meridian#comment-889489
... View more
11-06-2019
02:14 AM
|
0
|
0
|
1319
|
|
POST
|
We've fixed the issue for the December release Michael. If you want to, you can already try it out with the latest build: Sketch over dateline example. Let us know if you find any issues in the feedback repo.
... View more
11-06-2019
02:12 AM
|
1
|
8
|
4785
|
|
POST
|
You're right about that, I'll make sure to add these limitation in the documentation for all tile layers that use a tiling scheme.
... View more
11-05-2019
09:55 AM
|
0
|
0
|
1071
|
|
POST
|
Hey, It sounds like your tiling scheme does not fulfill these requirements: 256x256 or 512x512 pixel tiles Scale levels must increase or decrease by a power of two At level 0 there shouldn't be more than 30 root tiles. All tiled layers must have the same tiling scheme and SpatialReference. You can read about it in the TileLayer documentation: TileLayer | ArcGIS API for JavaScript 4.13 The coordinate system shouldn't be a problem as long as you have a local scene.
... View more
11-04-2019
03:09 AM
|
0
|
2
|
1071
|
|
POST
|
Hi Arne, navigating underground can be tricky and even more so if you try to pan against the horizon. So adding features in the background is a good advice. However, which API version are you using? We did make some improvements in navigation to make it a bit more stable a couple of releases ago. And just out of curiosity, is navigation in your scene more difficult than in this sample? Local scene
... View more
10-21-2019
10:14 AM
|
2
|
1
|
1207
|
|
POST
|
This is a feature indeed, in 3D you might sketch objects that get occluded by other features and then highlight is the way to see the entire shape of your sketch when some parts are occluded. If you absolutely want to get rid of it, then I would go for Robert's solution. Not very nice, but the only one for now. We were discussing how to improve this behavior and one option would be to make the highlight more subtle. Would that work for you or would you just want to be able to turn it off?
... View more
10-08-2019
09:51 AM
|
1
|
1
|
1277
|
|
POST
|
Unfortunately this is a bug in the API and we don't have a workaround at the moment. We have an issue open for it and we'll look into it. Sorry about the inconvenience.
... View more
10-07-2019
01:06 AM
|
0
|
0
|
4785
|
|
POST
|
I'm not sure I understand your question very well, but assuming you have a style item with myltiple symbols (either published by you or by esri) you could request the symbols in that style and they have thumbnails that you can display in a drop-down list. So for example for the icons style: https://www.arcgis.com/home/item.html?id=a91ce080e9414810b71d55edc51b5837 you could make a request to get the item and then request the data associated with it using fetchData(). const portal = new Portal({url: "https://www.arcgis.com"});
portal.load().then(function() {
// Create query parameters for the portal search
const queryParams = new PortalQueryParams({
query: "id: a91ce080e9414810b71d55edc51b5837"
});
// Get the item based on the queryParams created from portal above
portal.queryItems(queryParams).then(function(items){
return items.results[0].fetchData();
})
.then(createDropDown);
}); I made a live sample here: https://codepen.io/ralucanicola/pen/PoYNrNJ?editors=1000
... View more
08-16-2019
02:15 AM
|
1
|
0
|
528
|
|
POST
|
I have the feeling there's something specific about the service. Just to make sure: is this a point geometry FeatureLayer with ObjectSymbol3DLayer symbol? I don't understand why you would get an error about passing in a multipatch geometry...
... View more
08-15-2019
10:48 AM
|
0
|
0
|
3021
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-24-2024 04:54 AM | |
| 2 | 01-23-2024 02:52 AM | |
| 3 | 01-19-2024 12:49 AM | |
| 4 | 03-27-2023 10:34 AM | |
| 7 | 03-13-2023 08:00 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|