Plugin for using TMS layers with gxp.Viewer instances. The plugin issues a Capabilities request to create a store of the TMS’s tile maps. It is currently not supported to use this source type directly in the viewer config, it is only used to add a TMS service dynamically through the AddLayers plugin.
Configuration properties in addition to those listed for Ext.util.Observable.
String TMS service URL for this source
String TMS version to use, defaults to 1.0.0
Public properties in addition to those listed for Ext.util.Observable.
Boolean Set to true if you don’t want this LayerSource to show up in the AddLayers dialog. Defaults to false.
Boolean. true when the source is ready, but its store hasn’t been loaded yet (i.e. lazy source). Read-only.
String A descriptive title for this layer source.
Public methods in addition to those listed for Ext.util.Observable.
|Parameters:||config – Object The application config for this layer.|
|Returns:||GeoExt.data.LayerRecord or null when the source is lazy.|
Create a layer record given the config.
Creates a store of layer records. Fires “ready” when store is loaded.
|Parameters:||record – GeoExt.data.LayerRecord|
Create a config object that can be used to recreate the given record.
|Parameters:||layerRecord – GeoExt.data.LayerRecord a record from this source’s store|
|Returns:||OpenLayers.Projection A suitable projection for the layerRecord. If the layer is available in the map projection, the map projection will be returned. Otherwise an equal projection, or null if none is available.|
Get the projection that the source will use for the layer created in createLayerRecord. If the layer is not available in a projection that fits the map projection, null will be returned.
Gets the configured source state.