Merge pull request #1986 from bartvde/wfs-example

ol.format.WFS has no readProjection method (r=@elemoine)
This commit is contained in:
Bart van den Eijnden
2014-04-24 21:16:53 +02:00
5 changed files with 167 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ ol.source.FormatVector.prototype.readFeatures = function(source) {
var features = format.readFeatures(source);
var featureProjection = format.readProjection(source);
var projection = this.getProjection();
if (!goog.isNull(projection)) {
if (!goog.isNull(projection) && !goog.isNull(featureProjection)) {
if (!ol.proj.equivalent(featureProjection, projection)) {
var transform = ol.proj.getTransform(featureProjection, projection);
var i, ii;