do not specify the source projection in ol.parser.ReadFeaturesOptions anymore

This commit is contained in:
Bart van den Eijnden
2013-05-15 15:34:11 +02:00
parent 2ad3ee6f99
commit e8ed1674ea
4 changed files with 3 additions and 8 deletions

View File

@@ -349,8 +349,7 @@ ol.layer.Vector.prototype.parseFeatures = function(data, parser, projection) {
this.addFeatures(features);
};
var options = {callback: callback, projection:
this.getSource().getProjection()};
var options = {callback: callback};
if (goog.isString(data)) {
if (goog.isFunction(parser.readFeaturesFromStringAsync)) {
parser.readFeaturesFromStringAsync(data, goog.bind(addFeatures, this),