lib/Map/gmlToGeoJson.js
function gml2coord(posList) {
  var pnts = posList.split(/[ ,]+/).filter(isNotEmpty);
  var coords = [];
  for (var i = 0; i < pnts.length; i += 2) {
    coords.push([parseFloat(pnts[i + 1]), parseFloat(pnts[i])]);
  }
  return coords;
}
function gml2coord(posList) {
  var pnts = posList.split(/[ ,]+/).filter(isNotEmpty);
  var coords = [];
  for (var i = 0; i < pnts.length; i += 2) {
    coords.push([parseFloat(pnts[i + 1]), parseFloat(pnts[i])]);
  }
  return coords;
}
function gml2coord ( posList ) { var pnts = posList . split ( / [ ,]+ / ) . filter ( isNotEmpty ) ; var coords = [ ] ; for ( var i = 0 ; i < pnts . length ; i += 2 ) { coords . push ( [ parseFloat ( pnts [ i + 1 ] ) , parseFloat ( pnts [ i ] ) ] ) ; } return coords ; }
Utility function to change esri gml positions to geojson positions
Utility function to change esri gml positions to geojson positions