Replies: 4 comments 11 replies
-
Hi, could @ibgreen or @felixpalmer please share an example on how this would work? So I'm first fetching a root tileset to retrieve a session. Now I have a URL like: which I want to feed into the loader: This works but then it tries to resolve the glbs and fails, because the query parameters apparently have been removed:
It should be: What am I missing? Sorry if there is something obvious documented somewhere, I just got started working with the library. I'm using the 3.4.0 tags: Thanks a bunch! |
Beta Was this translation helpful? Give feedback.
-
@arthurschiller the way we have it working via deck (which passes the parameters through to loaders.gl) is to only provide the API key as a header, this way it is persistent: https://github.com/visgl/deck.gl/blob/master/examples/website/google-3d-tiles/app.jsx#L53-L55 This PR added automatic support for the session parameter |
Beta Was this translation helpful? Give feedback.
-
@jo-chemla when constructing the
|
Beta Was this translation helpful? Give feedback.
-
@arthurschiller @felixpalmer was there ever any resolution on this issue? I'm running into the same issues stated above where the session is not being added as a query parameter and thus throwing 400 bad request errors when attempting to fetch the tiles after updating the tileset with the viewport. |
Beta Was this translation helpful? Give feedback.
-
@jo-chemla In response to your question in the closed PR #2252 (comment)
There has been a fair amount of hacking by multiple folks over time, so it can get confusing and probably benefits from some cleanup and documentation.
The deck.gl example at https://deck.gl/examples/google-3d-tiles (source code at https://github.com/visgl/deck.gl/blob/8.9-release/examples/website/google-3d-tiles/app.jsx#L53) uses loadOptions on the layer to set the X-GOOG-API-KEY. This results in fetch options being passed in the initial tileset load.
The PR in 3.3.5 you reference was intended to allow you to simply pass query parameters as part of the original URL (i.e. no need to pass them in through undocumented tileset properties).
Beta Was this translation helpful? Give feedback.
All reactions