check if(type === 'Polyline') type = 'LineString';