Class: BaseMapSource

alk.source.BaseMapSource

An instance of this class contains the ALK source that is used in the alk.layer.BaseMapLayer.

It is an ol.source.Tile source that uses the ALK Map Tile Service.

new alk.source.BaseMapSource(opt_options)

This constructor creates a Source object with which to access an ALK Map Tile Service.

Option Type Description
serviceOptions alkx.MapTileServiceOptions | undefined

This option contains the options to create the alk.service.MapTileService service that creates the URL to get the map tiles.

attributions ol.AttributionLike | undefined

This option is an OpenLayers option passed to the ol.source.XYZ super class of the alk.source.XYZSource object from its subclasses.

Attributions.

cacheSize number | undefined

This option is an OpenLayers option passed to the ol.source.XYZ super class of the alk.source.XYZSource object from its subclasses.

Cache size. Default is 2048.

crossOrigin null | string | undefined

This option is an OpenLayers option passed to the ol.source.XYZ super class of the alk.source.XYZSource object from its subclasses.

The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value 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.

opaque boolean | undefined

This option is an OpenLayers option passed to the ol.source.XYZ super class of the alk.source.XYZSource object from its subclasses.

Whether the layer is opaque.

projection ol.ProjectionLike | undefined

This option is an OpenLayers option passed to the ol.source.XYZ super class of the alk.source.XYZSource object from its subclasses.

This options contains the projection with which to interpret other options, such as the extent.

reprojectionErrorThreshold number | undefined

This option is an OpenLayers option passed to the ol.source.XYZ super class of the alk.source.XYZSource object from its subclasses.

Maximum allowed reprojection error (in pixels). Default is 0.5. Higher values may increase reprojection performance, but decrease precision.

state ol.source.State | undefined

Source state.

wrapX boolean | undefined

This option is an OpenLayers option passed to the ol.source.XYZ super class of the alk.source.XYZSource object from its subclasses.

Whether to wrap the world horizontally. The default, undefined, is to request out-of-bounds tiles from the server. When set to false, only one world will be rendered. When set to true, tiles will be requested for one world only, but they will be wrapped horizontally to render multiple worlds.

Extends

Members

This is the service that was used to create the URL. It is not used internally, and just serves as a reference.

Methods

setService(service) inherited

This method sets the Service for this source. It generates a new URL.

Name Type Description
service alk.service.Service