function drawPath(context, extentFactor, coordinates) {
    // Polygon rings
    context.beginPath();
    for (var i2 = 0; i2 < coordinates.length; i2++) {
        var pos = coordinates[i2][0];
        context.moveTo(pos.x * extentFactor, pos.y * extentFactor);
        //context.fillText("" + jStyle.id, coordinates[i2][0].x, coordinates[i2][0].y);
        // Polygon ring points
        for (var j = 1; j < coordinates[i2].length; j++) {
            pos = coordinates[i2][j];
            context.lineTo(pos.x * extentFactor, pos.y * extentFactor);

        }
    }
}
//function used to draw a path for geometry and line based rendering
function used to draw a path for geometry and line based rendering
function used to draw a path for geometry and line based rendering
function drawPath(context, extentFactor, coordinates) {
    context.beginPath();
    for (var i2 = 0; i2 < coordinates.length; i2++) {
        var pos = coordinates[i2][0];
        context.moveTo(pos.x * extentFactor, pos.y * extentFactor);
        for (var j = 1; j < coordinates[i2].length; j++) {
            pos = coordinates[i2][j];
            context.lineTo(pos.x * extentFactor, pos.y * extentFactor);
        }
    }
}
function drawPath ( context , extentFactor , coordinates ) { context . beginPath ( ) ; for ( var i2 = 0 ; i2 < coordinates . length ; i2 ++ ) { var pos = coordinates [ i2 ] [ 0 ] ; context . moveTo ( pos . x * extentFactor , pos . y * extentFactor ) ; for ( var j = 1 ; j < coordinates [ i2 ] . length ; j ++ ) { pos = coordinates [ i2 ] [ j ] ; context . lineTo ( pos . x * extentFactor , pos . y * extentFactor ) ; } } }
function used to draw a path for geometry and line based rendering
function used to draw a path for geometry and line based rendering
// Polygon rings //context.fillText("" + jStyle.id, coordinates[i2][0].x, coordinates[i2][0].y); // Polygon ring points