GeoJSON is now a parser. The idea is that we'll want to pass parsers to sources or protocols and want a known type.
22 lines
366 B
JavaScript
22 lines
366 B
JavaScript
goog.provide('ol.parser.Parser');
|
|
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
*/
|
|
ol.parser.Parser = function() {};
|
|
|
|
/**
|
|
* @param {*} data Data to deserialize.
|
|
* @return {*} Parsed data.
|
|
*/
|
|
ol.parser.Parser.prototype.read = goog.abstractMethod;
|
|
|
|
|
|
/**
|
|
* @param {*} obj Object to serialize.
|
|
* @return {*} Serialized object.
|
|
*/
|
|
ol.parser.Parser.prototype.write = goog.abstractMethod;
|