Parser base class

GeoJSON is now a parser.  The idea is that we'll want to pass parsers to sources or protocols and want a known type.
This commit is contained in:
Tim Schaub
2013-03-03 11:50:51 +01:00
parent 93ab45432b
commit 69b6fae744
4 changed files with 75 additions and 33 deletions
+4
View File
@@ -1,9 +1,12 @@
goog.provide('ol.parser.XML');
goog.require('ol.parser.Parser');
/**
* @constructor
* @extends {ol.parser.Parser}
*/
ol.parser.XML = function() {
this.regExes = {
@@ -13,6 +16,7 @@ ol.parser.XML = function() {
trimComma: (/\s*,\s*/g)
};
};
goog.inherits(ol.parser.XML, ol.parser.Parser);
/**