Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description preemptiveboolean
(defaults to true)If
truethe UTFGrid source loads the tiles based on their "visibility". This improves the speed of response, but increases traffic. Note that if set tofalse(lazy loading), you need to passtrueasrequestto theforDataAtCoordinateAndResolutionmethod otherwise no data will ever be loaded.jsonpboolean
(defaults to false)Use JSONP with callback to load the TileJSON. Useful when the server does not support CORS..
tileJSONConfig | undefined TileJSON configuration for this source. If not provided,
urlmust be configured.urlstring | undefined TileJSON endpoint that provides the configuration for this source. Request will be made through JSONP. If not provided,
tileJSONmust be configured.wrapXboolean
(defaults to true)Whether to wrap the world horizontally.
zDirectionnumber | NearestDirectionFunction
(defaults to 0)Choose whether to use tiles with a higher or lower zoom level when between integer zoom levels. See
getZForResolution. -
UTFGridJSON{Object}
-
Properties:
Name Type Description gridArray.<string> The grid.
keysArray.<string> The keys.
dataObject.<string, Object> | undefined Optional data.