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
null
if not yet loaded or in case of an error).Name Type Description coordinate
module:ol/coordinate~Coordinate Coordinate.
resolution
number Resolution.
callback
function Callback.
request
boolean If
true
the 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.