WKT Format reprojects geometrycollection components twice. Fixed by anonymous
contributor. (Closes #1554) git-svn-id: http://svn.openlayers.org/trunk/openlayers@7413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -67,7 +67,9 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
|
||||
features.CLASS_NAME == "OpenLayers.Feature.Vector") {
|
||||
features.geometry.transform(this.externalProjection,
|
||||
this.internalProjection);
|
||||
} else if (features && typeof features == "object") {
|
||||
} else if (features &&
|
||||
type != "geometrycollection" &&
|
||||
typeof features == "object") {
|
||||
for (var i = 0; i < features.length; i++) {
|
||||
var component = features[i];
|
||||
component.geometry.transform(this.externalProjection,
|
||||
|
||||
Reference in New Issue
Block a user