Debug tile options.
A pseudo tile source, which does not fetch tiles from a server, but renders a grid outline for the tile grid/projection along with the coordinates for each tile. See examples/canvas-tiles for an example.
Uses Canvas context2d, so requires Canvas support.
Get the attributions of the source.
Attributions.
stable
Get the logo of the source.
Logo.
stable
Get the projection of the source.
Projection.
Get the state of the source, see ol.source.State for possible states.
State.
Listen for a certain type of event.
The event type or array of event types.
The listener function.
Optional
opt_this: ObjectThe object to use as this
in listener
.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
stable
Listen once for a certain type of event.
The event type or array of event types.
The listener function.
Optional
opt_this: ObjectThe object to use as this
in listener
.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
stable
Set the attributions of the source.
Attributions.
Can be passed as string
, Array<string>
, {@link ol.Attribution}
,
Array<{@link ol.Attribution}>
or undefined
.
Sets 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
opt_silent: booleanUpdate without triggering an event.
stable
Removes an event listener using the key returned by on()
or once()
.
Note that using the ol.Observable.unByKey static function is to
be preferred.
stable
Static
unGenerated using TypeDoc
Classdesc
A pseudo tile source, which does not fetch tiles from a server, but renders a grid outline for the tile grid/projection along with the coordinates for each tile. See examples/canvas-tiles for an example.
Uses Canvas context2d, so requires Canvas support.
Param: options
Debug tile options.
Api