Merge vector-2.4 branch back to trunk.
svn merge sandbox/vector-2.4/@2307 sandbox/vector-2.4/@HEAD trunk/openlayers/ git-svn-id: http://svn.openlayers.org/trunk/openlayers@2803 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
33
lib/OpenLayers/Format.js
Normal file
33
lib/OpenLayers/Format.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/* Copyright (c) 2006 MetaCarta, Inc., published under a modified BSD license.
|
||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
||||
* for the full text of the license. */
|
||||
|
||||
/**
|
||||
* Base class for format reading/writing.
|
||||
* @requires OpenLayers/Util.js
|
||||
*/
|
||||
OpenLayers.Format = OpenLayers.Class.create();
|
||||
OpenLayers.Format.prototype = {
|
||||
|
||||
initialize: function(options) {
|
||||
OpenLayers.Util.extend(this, options);
|
||||
},
|
||||
|
||||
/**
|
||||
* Read data from a string, and return a list of features.
|
||||
*
|
||||
* @param {string} data data to read/parse.
|
||||
*/
|
||||
read: function(data) {
|
||||
alert("Read not implemented.");
|
||||
},
|
||||
|
||||
/**
|
||||
* Accept Feature Collection, and return a string.
|
||||
*
|
||||
* @param {Array} List of features to serialize into a string.
|
||||
*/
|
||||
write: function(features) {
|
||||
alert("Write not implemented.");
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user