Enhance WKT parser to parse multi-line strings. r=erilem (closes #3365)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12098 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -56,6 +56,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
|
||||
*/
|
||||
read: function(wkt) {
|
||||
var features, type, str;
|
||||
wkt = wkt.replace(/[\n\r]/g, " ");
|
||||
var matches = this.regExes.typeStr.exec(wkt);
|
||||
if(matches) {
|
||||
type = matches[1].toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user