jsfiddle/OpenLayers.debug.js
function(str) {
            var polygon;
            var polygons = OpenLayers.String.trim(str).split(this.regExes.doubleParenComma);
            var components = [];
            for(var i=0, len=polygons.length; i<len; ++i) {
                polygon = polygons[i].replace(this.regExes.trimParens, '$1');
                components.push(this.parse.polygon.apply(this, [polygon]).geometry);
            }
            return new OpenLayers.Feature.Vector(
                new OpenLayers.Geometry.MultiPolygon(components)
            );
        }
function(str) {
            var polygon;
            var polygons = OpenLayers.String.trim(str).split(this.regExes.doubleParenComma);
            var components = [];
            for(var i=0, len=polygons.length; i<len; ++i) {
                polygon = polygons[i].replace(this.regExes.trimParens, '$1');
                components.push(this.parse.polygon.apply(this, [polygon]).geometry);
            }
            return new OpenLayers.Feature.Vector(
                new OpenLayers.Geometry.MultiPolygon(components)
            );
        }
function ( str ) { var polygon ; var polygons = OpenLayers . String . trim ( str ) . split ( this . regExes . doubleParenComma ) ; var components = [ ] ; for ( var i = 0 , len = polygons . length ; i < len ; ++ i ) { polygon = polygons [ i ] . replace ( this . regExes . trimParens , '$1' ) ; components . push ( this . parse . polygon . apply ( this , [ polygon ] ) . geometry ) ; } return new OpenLayers . Feature . Vector ( new OpenLayers . Geometry . MultiPolygon ( components ) ) ; }
Return a multipolygon feature given a multipolygon WKT fragment.
@param {String} str A WKT fragment representing the multipolygon
@returns {OpenLayers.Feature.Vector} A multipolygon feature
@private
Return a multipolygon feature given a multipolygon WKT fragment .