Class: RoadSurfaceTileLayer

alk.layer.RoadSurfaceTileLayer

An instance of this class is to be used for the RoadSurface layer in an ol.Map, which is normally placed above a base map layer.

new alk.layer.RoadSurfaceTileLayer(opt_options)

This constructor creates an ALK Layer that displays road surface tiles which is meant to be placed over a base map layer.

It uses a alk.source.RoadSurfaceTileSource source that is specific to the ALK RoadSurface Tile Service.

Option Type Description
sourceOptions alkx.RoadSurfaceTileSourceOptions | undefined

This option contains the options that are given to the underlying alk.service.RoadSurfaceTileSource to create the route.

opacity number | undefined

This option is an OpenLayer Vector Layer Option.

Opacity (0, 1). Default is 1.

preload number | undefined

This option is an OpenLayer Vector Layer Option.

Preload. Load low-resolution tiles up to preload levels. By default preload is 0, which means no preloading.

map ol.PluggableMap | undefined

This option is an OpenLayer Vector Layer Option.

Sets the layer as overlay on a map. The map will not manage this layer in its layers collection, and the layer will be rendered on top. This is useful for temporary layers. The standard way to add a layer to a map and have it managed by the map is to use ol.Map#addLayer.

visible boolean | undefined

This option is an OpenLayer Vector Layer Option.

Visibility. Default is true (visible).

extent ol.Extent | undefined

This option is an OpenLayer Vector Layer Option.

The bounding extent for layer rendering. The layer will not be rendered outside of this extent.

minResolution number | undefined

This option is an OpenLayer Vector Layer Option.

The minimum resolution (inclusive) at which this layer will be visible.

maxResolution number | undefined

This option is an OpenLayer Vector Layer Option.

The maximum resolution (exclusive) below which this layer will be visible.

useInterimTilesOnError boolean | undefined

This option is an OpenLayer Vector Layer Option.

Use interim tiles on error. Default is true.

Example
var map = new ol.Map({
  layers: [
    new alk.layer.BaseMapLayer(),
    new alk.layer.RoadSurfaceTileLayer()
    ]
});

Extends