Class: LoadStrategy

alk.source.LoadStrategy

An instance of this class is made to be used with some ALK vector sources. It is used to specify the extents to be loaded. It governs what should be loaded if the alk.source.LoadStrategy#loadStrategy method returns an array containing extents.

new alk.source.LoadStrategy(opt_options)

This constructor creates a Load Strategy object that governs the loaded content of certain sources.

At its base it may be used to load selectively based on min and max resolution.

Option Type Description
minResolution number

This option specifies the minimum resolution for which the load strategy will provide extents. The number is specified in meters per pixel.

maxResolution number

This option specifies the maximum resolution for which the load strategy will provide extents. The number is specified in meters per pixel.

Subclasses

Methods

getMaxResolution(){number|undefined}

This function returns the maximum resolution.

getMinResolution(){number|undefined}

This function returns the minimum resolution.