new UTFGrid(options)
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Source options.
|
|||||||||||||||||||||
Methods
-
forDataAtCoordinateAndResolution(coordinate, resolution, callback, opt_request)
source/UTFGrid.js, line 384 -
Calls the callback (synchronously by default) with the available data for given coordinate and resolution (or
nullif not yet loaded or in case of an error).Name Type Description coordinatemodule:ol/coordinate~Coordinate Coordinate.
resolutionnumber Resolution.
callbackfunction Callback.
requestboolean If
truethe callback is always async. The tile data is requested if not yet loaded. -
getTemplate(){string|undefined}
source/UTFGrid.js, line 368 -
Return the template from TileJSON.
Returns:
The template from TileJSON.
OpenLayers