Protected
crossProtected
disposedThe object has already been disposed.
This source is currently loading data. Sources that defer loading to the
map's tile queue never set this to true
.
Protected
projectionProtected
tileProtected
tileProtected
tileProtected
tileProtected
tileProtected
tileProtected
tmpProtected
urlsProtected
viewProtected
viewzDirection hint, read by the renderer. Indicates which resolution should be used by a renderer if the views resolution does not match any resolution of the tile source. If 0, the nearest resolution will be used. If 1, the nearest lower resolution will be used. If -1, the nearest higher resolution will be used.
Protected
applyProtected
Apply any properties from another object without triggering events.
The source object.
Dispatches an event and calls all listeners listening for events
of this type. The event parameter can either be a string or an
Object with a type
property.
Event object.
false
if anyone called preventDefault on the
event object or if any of the listeners returned false.
Protected
disposeA source loading error. When the source state is error
, use this function
to get more information about the error. To debug a faulty configuration, you may want to use
a listener like
source.on('change', () => {
if (source.getState() === 'error') {
console.error(source.getError());
}
});
Protected
getReturns a tile coordinate wrapped around the x-axis. When the tile coordinate
is outside the resolution and extent range of the tile grid, null
will be
returned.
Tile coordinate.
Optional
projection: ProjectionProjection.
Tile coordinate to be passed to the tileUrlFunction or
null if no tile URL should be created for the passed tileCoord
.
Protected
getProtected
handleProtected
onceProtected
onProtected
setSets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Values.
Optional
silent: booleanUpdate without triggering an event.
Sets the tile grid to use when reprojecting the tiles to the given projection instead of the default tile grid for the projection.
This can be useful when the default tile grid cannot be created (e.g. projection has no extent defined) or for optimization reasons (custom tile size, resolutions, ...).
Projection.
Tile grid to use for the projection.
Protected
un
Classdesc
A tile layer source that renders tiles from the Google Map Tiles API. The constructor takes options that are passed to the request to create a session token. Refer to the documentation for additional details.
Api