A control for using image tiles cached with OpenLayers.Control.CacheWrite from the browser’s local storage.
OpenLayers.
|
A control for using image tiles cached with OpenLayers.Control.CacheWrite from the browser’s local storage. |
Properties | |
fetchEvent | {String} The layer event to listen to for replacing remote resource tile URLs with cached data URIs. |
layers | {Array(OpenLayers.Layer.Grid)}. |
autoActivate | {Boolean} Activate the control when it is added to a map. |
Constructor | |
OpenLayers.
|
{String} The layer event to listen to for replacing remote resource tile URLs with cached data URIs. Supported values are “tileerror” (try remote first, fall back to cached) and “tileloadstart” (try cache first, fall back to remote). Default is “tileloadstart”.
Note that “tileerror” will not work for CORS enabled images OpenLayers.Tile.Image.crossOriginKeyword in OpenLayers.Layer.Grid.tileOptions.
{Array(OpenLayers.Layer.Grid)}. Optional. If provided, only these layers will receive tiles from the cache.