Classes
Members
-
module:ol/source/OSM.ATTRIBUTION{string}
-
The attribution containing a link to the OpenStreetMap Copyright and License page.
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description attributionsmodule:ol/source/Source~AttributionLike <optional>
Attributions.
cacheSizenumber <optional>
Tile cache size. The default depends on the screen size. Will increase if too small.
crossOriginnull | string <optional>
'anonymous' The
crossOriginattribute for loaded images. Note that you must provide acrossOriginvalue if you want to access pixel data with the Canvas renderer. See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.maxZoomnumber <optional>
19 Max zoom.
opaqueboolean <optional>
true Whether the layer is opaque.
reprojectionErrorThresholdnumber <optional>
1.5 Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.
tileLoadFunctionmodule:ol/Tile~LoadFunction <optional>
Optional function to load a tile given a URL. The default is
function(imageTile, src) { imageTile.getImage().src = src; };urlstring <optional>
'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png' URL template. Must include
{x},{y}or{-y}, and{z}placeholders.wrapXboolean <optional>
true Whether to wrap the world horizontally.
OpenLayers