This is the namespace that contains specific ortho sources to be viewed in a
bu.ortho.Viewer.
- Source:
- bu-ortho/source/bu.ortho.source.jsdoc
Classes
Type Definitions
-
TileImageOptions
-
Options for
bu.ortho.source.TileImage.Type:
- Object
- Source:
- bu-ortho/typedefs.js
Properties:
Name Type Description attributionsol.AttributionLike | undefined Attributions.
cacheSizenumber | undefined Cache size. Default is
2048.crossOriginstring | null | undefined The
crossOriginattribute for loaded images. Note that you must provide acrossOriginvalue if you are using the WebGL renderer or 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.logostring | olx.LogoOptions | undefined Logo.
opaqueboolean | undefined Whether the layer is opaque.
projectionol.ProjectionLike Projection.
reprojectionErrorThresholdnumber | undefined Maximum allowed reprojection error (in pixels). Default is
0.5. Higher values can increase reprojection performance, but decrease precision.stateol.source.State | undefined Source state.
tileClassfunction | undefined Class used to instantiate image tiles. Default is
ol.ImageTile.tileGridol.tilegrid.TileGrid | undefined Tile grid.
tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL. The default is
function(imageTile, src) { imageTile.getImage().src = src; };tilePixelRationumber | undefined The pixel ratio used by the tile service. For example, if the tile service advertizes 256px by 256px tiles but actually sends 512px by 512px images (for retina/hidpi devices) then
tilePixelRatioshould be set to2. Default is1.tileUrlFunctionol.TileUrlFunctionType | undefined Optional function to get tile URL given a tile coordinate and the projection.
urlstring | undefined URL template. Must include
{x},{y}or{-y}, and{z}placeholders. A{?-?}template pattern, for examplesubdomain{a-f}.domain.com, may be used instead of defining each one separately in theurlsoption.urlsArray.<string> | undefined An array of URL templates.
wrapXboolean | undefined Whether to wrap the world horizontally. The default,
undefined, is to request out-of-bounds tiles from the server. When set tofalse, only one world will be rendered. When set totrue, tiles will be requested for one world only, but they will be wrapped horizontally to render multiple worlds.imagerySetstring | undefined Type of imagery.
autoSwitchLayerboolean | undefined If auto switcher this source when rotation changes.
-
WMTSOptions
-
Options for
bu.ortho.source.WMTS.Type:
- Object
- Source:
- bu-ortho/typedefs.js
Properties:
Name Type Description attributionsol.AttributionLike | undefined Attributions.
cacheSizenumber | undefined Cache size. Default is
2048.crossOriginstring | null | undefined The
crossOriginattribute for loaded images. Note that you must provide acrossOriginvalue if you are using the WebGL renderer or 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.logostring | olx.LogoOptions | undefined Logo.
tileGridol.tilegrid.WMTS Tile grid.
projectionol.ProjectionLike Projection.
reprojectionErrorThresholdnumber | undefined Maximum allowed reprojection error (in pixels). Default is
0.5. Higher values can increase reprojection performance, but decrease precision.requestEncodingol.source.WMTSRequestEncoding | string | undefined Request encoding. Default is
KVP.layerstring Layer name as advertised in the WMTS capabilities.
stylestring Style name as advertised in the WMTS capabilities.
tileClassfunction | undefined Class used to instantiate image tiles. Default is
ol.ImageTile.tilePixelRationumber | undefined The pixel ratio used by the tile service. For example, if the tile service advertizes 256px by 256px tiles but actually sends 512px by 512px images (for retina/hidpi devices) then
tilePixelRatioshould be set to2. Default is1.versionstring | undefined WMTS version. Default is
1.0.0.formatstring | undefined Image format. Default is
image/jpeg.matrixSetstring Matrix set.
dimensionsObject | undefined Additional "dimensions" for tile requests. This is an object with properties named like the advertised WMTS dimensions.
urlstring | undefined URL template. Must include
{x},{y}or{-y}, and{z}placeholders. A{?-?}template pattern, for examplesubdomain{a-f}.domain.com, may be used instead of defining each one separately in theurlsoption.tileLoadFunctionol.TileLoadFunctionType | undefined Optional function to load a tile given a URL. The default is
function(imageTile, src) { imageTile.getImage().src = src; };urlsArray.<string> | undefined An array of URL templates.
wrapXboolean | undefined Whether to wrap the world horizontally. The default,
undefined, is to request out-of-bounds tiles from the server. When set tofalse, only one world will be rendered. When set totrue, tiles will be requested for one world only, but they will be wrapped horizontally to render multiple worlds.overlaystring | undefined Overlay name.
autoSwitchLayerboolean | undefined If auto switcher this source when rotation changes.
Javascript API 7.x