Abstract
Protected
constructorCreates a new EnvironmentMapImagery with the given options. This is "abstract" EnvironmentMapImagery and should never be instantiated directly.
parameters to configure the EnvironmentMapImagery.
Indicates whether or not credentials should be included with HTTP requests.
Set this to true if the server requires credentials, like HTTP basic authentication headers or cookies.
You should disable if the server is configured to allow cross-origin requests from all domains
(Acces-Control-Allow-Origin=*
).
If the server allows CORS requests from all domains, the browser will block all requests where
credentials=true
.
Once set, all subsequent HTTP requests will use the newly set value.
The default value is false
.
Headers to send with every HTTP request.
An object literal that represents the headers to send with every HTTP request. The property names represent HTTP header names, the property values represent the HTTP header values. This property can be set dynamically (post-construction). Once set, all subsequent HTTP requests will use the newly set headers.
Note that when custom headers are being sent to a server on another domain, the server will have to properly
respond to pre-flight CORS requests (a HTTP OPTION request sent by the browser before doing the actual request).
The server has to indicate that the header can be used in the actual request, by including it in
the pre-flight's Access-Control-Allow-Headers
response header.
The default value is null
.
Returns the type of imagery.
Represents imagery of an EnvironmentMap.
There are two implementations: EquirectangularImagery and CubeMapImagery and each has an URL version for convenience.
Note that this is "abstract" EnvironmentMapImagery and should never be instantiated directly. Only its subtypes can be directly instantiated.
Since
2021.1