Implement readProjection on ol.format.WFS and add WFS JSONP example

This commit is contained in:
Bart van den Eijnden
2014-04-23 15:34:39 +02:00
parent 3ffed43834
commit 962ddff1c2
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;