Skip to content

Commit ce39630

Browse files
authored
Update README.md
1 parent c62a343 commit ce39630

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/three/plugins/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,19 @@ The function used to map a [0, 1] value to a color for debug visualizations. By
344344
### constructor
345345

346346
```js
347-
constructor( { accessToken : String, autoRefreshToken = false : Boolean, logoUrl = null : String | null, useRecommendedSettings = true : Boolean } )
347+
constructor( {
348+
accessToken : String,
349+
autoRefreshToken = false : Boolean,
350+
logoUrl = null : String | null,
351+
useRecommendedSettings = true : Boolean,
352+
sessionOptions = null : null | Object,
353+
} )
348354
```
349355

350356
Takes the Google Cloud access token. If `autoRefreshToken` is set to true then the plugin will automatically perform a new root tile request once the existing token has expired after four hours.
357+
358+
The `sessionOptions` object corresponds to the [set of options passed when starting a 2d maps session](https://developers.google.com/maps/documentation/tile/session_tokens). Setting this to `null` indicates that the Google Photorealistic Tiles API will be used.
359+
351360
This plugin changes below values to be more efficient for the photorealistic tiles if `useRecommendedSettings = true (default)`:
352361
```js
353362
tiles.parseQueue.maxJobs = 10;

0 commit comments

Comments
 (0)