gxp.plugins.FeedSource

Extends
ptype
gxp_feedsource
class gxp.plugins.FeedSource(config)

Plugin for using geoRSS feeds as layers with gxp.Viewer instances.

Config Options

Configuration properties in addition to those listed for Ext.util.Observable.

fixed

Boolean Use OpenLayers.Strategy.Fixed if true, BBOX if false

format

String Default format of vector layer

popupFormat

String XTemplate string for feature info popup

title

String Title for source

url

String URL for GeoRSS feed

Public Properties

Public properties in addition to those listed for Ext.util.Observable.

FeedSource.hidden

Boolean Set to true if you don’t want this LayerSource to show up in the AddLayers dialog. Defaults to false.

FeedSource.lazy

Boolean. true when the source is ready, but its store hasn’t been loaded yet (i.e. lazy source). Read-only.

FeedSource.store

GeoExt.data.LayerStore

FeedSource.title

String A descriptive title for this layer source.

Public Methods

Public methods in addition to those listed for Ext.util.Observable.

FeedSource.createLayerRecord()
Parameters:configObject The application config for this layer.
Returns:GeoExt.data.LayerRecord

Create a layer record given the config.

FeedSource.createStore()

Creates a store of layer records. Fires “ready” when store is loaded.

FeedSource.getConfigForRecord()
Parameters:recordGeoExt.data.LayerRecord
Returns:Object

Create a config object that can be used to recreate the given record.

FeedSource.getProjection()
Parameters:layerRecordGeoExt.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.

FeedSource.getState()
Returns:Object

Gets the configured source state.

FeedSource.init()
Parameters:targetObject The object initializing this plugin.

Calls createStore() with a callback that fires the ‘ready’ event.

Events

Events in addition to those listed for Ext.util.Observable.

failure

Fires if the layer source fails to load.

ready

Fires when the layer source is ready for action.