Table Of Contents

Previous topic

Next topic

class, recordType)
Data reader class to create an array of objects from an array of OpenLayers.Layer objects for use in a object.

Example Use

Sample using a reader to create records from an array of layers:

var reader = new;
var layerData = reader.readRecords(map.layers);
var numRecords = layerData.totalRecords;
var layerRecords = layerData.records;

Public Methods

Public methods in addition to those listed for

Parameter:layersArray(OpenLayers.Layer) List of layers for creating records.
Returns:Object An object with records and totalRecords properties.

From an array of OpenLayers.Layer objects create a data block containing objects.