loaders.gl icon indicating copy to clipboard operation
loaders.gl copied to clipboard

I3S defaultGeometrySchema

Open 29942016 opened this issue 3 years ago • 5 comments

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'. image

And my current 3d tile layer implementation using deckgl is as follows image

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 :)

29942016 avatar May 12 '21 02:05 29942016

It seems that we need to improve loadOptions I'll try to fix it as soon as posssible

morphoix avatar May 13 '21 07:05 morphoix

@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

ibgreen avatar May 13 '21 15:05 ibgreen

@morphoix Will your PR be merged into the next alpha release, or is there still some additional testing that needs to be completed?

29942016 avatar May 17 '21 08:05 29942016

@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.

dryabinin94 avatar May 19 '21 12:05 dryabinin94

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
  },
  ...
});

belom88 avatar Jun 18 '21 06:06 belom88