jsfiddle/OpenLayers.debug.js
function(str) {
            // separate components of the collection with |
            str = str.replace(/,\s*([A-Za-z])/g, '|$1');
            var wktArray = OpenLayers.String.trim(str).split('|');
            var components = [];
            for(var i=0, len=wktArray.length; i<len; ++i) {
                components.push(OpenLayers.Format.WKT.prototype.read.apply(this,[wktArray[i]]));
            }
            return components;
        }
function(str) {
            // separate components of the collection with |
            str = str.replace(/,\s*([A-Za-z])/g, '|$1');
            var wktArray = OpenLayers.String.trim(str).split('|');
            var components = [];
            for(var i=0, len=wktArray.length; i<len; ++i) {
                components.push(OpenLayers.Format.WKT.prototype.read.apply(this,[wktArray[i]]));
            }
            return components;
        }
function ( str ) { // separate components of the collection with | str = str . replace ( / ,\s*([A-Za-z]) / g , '|$1' ) ; var wktArray = OpenLayers . String . trim ( str ) . split ( '|' ) ; var components = [ ] ; for ( var i = 0 , len = wktArray . length ; i < len ; ++ i ) { components . push ( OpenLayers . Format . WKT . prototype . read . apply ( this , [ wktArray [ i ] ] ) ) ; } return components ; }
Return an array of features given a geometrycollection WKT fragment.
@param {String} str A WKT fragment representing the geometrycollection
@returns {Array} An array of OpenLayers.Feature.Vector
@private
Return an array of features given a geometrycollection WKT fragment .