Class: UTFGrid

new UTFGrid(options)

source/UTFGrid.js, line 280

Name

Type

Description

options

Source options.

Name

Type

Default

Description

preemptive

boolean

true

If true the UTFGrid source loads the tiles based on their "visibility".
This improves the speed of response, but increases traffic.
Note that if set to false, you need to pass true as opt_request
to the forDataAtCoordinateAndResolution method otherwise no data
will ever be loaded.

jsonp

boolean

false

Use JSONP with callback to load the TileJSON.
Useful when the server does not support CORS..