Child class

Abstract type

Class

Abstract type

inner

options  Object

Options for the constructor.

Parameters

Name Type Optional Description

url

(undefined or String)

 

URL to resource.

datetime

(undefined or Date)

 

Datetime for this resource, undefined if resource have no datetime.

mimetype

(undefined or String)

 

MIME-Type of the resource.

reloadTime

(undefined or Integer)

 

After this time period the resource will be reloaded. Undefined for no reload. (in seconds)

className

(undefined or String)

 

Type's classname.

imageSmoothingEnabled

(undefined or boolean)

Yes

Disable image smoothing to draw sharp edges in image layers. Undefined uses the default (true).

ol

Object

 

Options for openlayers.

Values in ol have the following properties:

Name Type Optional Description

source

(Object, external:ol/source/Source~Source, or undefined)

 

Options for openlayers source object or OL source object already.

events

(Object with function() properties or undefined)

 

Function to listen to module:ol/render/Event~RenderEvent.

style

(undefined, external:ol/style/Style~Style, external:ol/style/Style~Style, or external:ol/style/Style~StyleFunction)

Yes

Style for features. If this is a module:ol/style/Style~StyleFunction, then "this" will be bound to this module:meteoJS/synview/resource~Resource.