loaders.gl
loaders.gl copied to clipboard
I3S defaultGeometrySchema
I'm having an issue trying to load in the tile data from the following service url:
https://tiles.arcgis.com/tiles/x0Sdf9S89WeD6QFk/arcgis/rest/services/Lamond_x16/SceneServer/layers/0
And here's a temporary (48h) token
-XYn4Ua2hR4cYhBX3Rvc1rr1cNc6nb9LUNiSCbvIVEAP8PHsbyz77g994pDH8yu6Ws3AthrK368ev0QjgUxUeoGQNptR61aJjY1RDFuJcgeYnuA-J6IGhO8YCP15xhJG3lXzT2k05zMLiiuv0vpLXzBmlessxdfdYj04nseBQBFvspCapKuMLbcxPcoWho3D
The exception being thrown is 'Cannot read property defaultGeometrySchema of undefined'.
And my current 3d tile layer implementation using deckgl is as follows
Chrome: 90.0.4430.93 (Official Build) (64-bit) Loaders.gl: v3.0.0-alpha.13 Deck.gl: v8.4.11
Hopefully I'm missing something simple, any help is appreciated :)
It seems that we need to improve loadOptions I'll try to fix it as soon as posssible
@morphoix
The CesiumION loader has a token in the nested options object:
options: {
'cesium-ion': {
accessToken: null
}
Not sure if that is a great solution, but we don't seem to support this for I3S
@morphoix Will your PR be merged into the next alpha release, or is there still some additional testing that needs to be completed?
@29942016 I create one more PR which can solve your issue. We should decide which solution is more appropriate in this case.
After we complete this step and pass code review we will able to merge it and create a new build of loaders.gl.
So we will keep you posted.
A quick workaround here can be:
const arcGisToken = 'abc';
const i3sLayer = new Tile3DLayer({
...
data: `https://tiles.arcgis.com.../layers/0?token=${arcGisToken}`
loadOptions: {
token: arcGisToken
},
...
});